> For the complete documentation index, see [llms.txt](https://pinvokeisalive.gitbook.io/pinvoke/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pinvokeisalive.gitbook.io/pinvoke/desktopfunctions/netapi32/dsgetdcnext.md).

# DsGetDcNext

### C# Signature:

```cs
using HANDLE = System.IntPtr;
using DWORD = System.UInt32;

[DllImport("netapi32.dll", SetLastError=true)]
internal static extern DWORD DsGetDcNext(
     HANDLE GetDcContextHandle,
     IntPtr SockAddressCount,
     IntPtr SockAddresses, //must free this if using (SocketAddressCount > 1)
     out IntPtr DnsHostName //will have to marshal this one manually
     );
```

### VB Signature:

```cs
Declare Function DsGetDcNext Lib "netapi32.dll" (TODO) As TODO
```
