using DWORD = System.UInt32;
using ULONG = System.UInt64;
[DllImport(Netapi32, CharSet=CharSet.Auto, SetLastError=true)]
internal static extern DWORD DsGetDcOpen(
[MarshalAs(UnmanagedType.LPTStr)]
string DnsName,
ULONG OptionFlags,
[MarshalAs(UnmanagedType.LPTStr)]
string SiteName,
IntPtr DomainGuid,
[MarshalAs(UnmanagedType.LPTStr)]
string DnsForestName,
ULONG DcFlags,
out IntPtr RetGetDcContext
);
Declare Function DsGetDcOpen Lib "netapi32.dll" (TODO) As TODO
None.
out Pointer to a HANDLE value that receives the domain controller enumeration context handle. This handle is used with the DsGetDcNext function to identify the domain controller enumeration operation. This handle is passed to DsGetDcClose to close the domain controller enumeration operation.
Please add some!
Please add some!
Do you know one? Please contribute it!