Desktop Functions: Smart Device Functions:
|
Search Results for "NetServerGetInfo" in [All]netapi32
public static extern int NetServerGetInfo(
Declare Function NetServerGetInfo Lib "netapi32.dll" (ByVal ServerName As String, _
lRetCode = NetServerGetInfo(vbNullString, 102, ptrBuff)
private static extern int NetServerGetInfo(string serverName, int level, out IntPtr pSERVER_INFO_XXX);
public static T NetServerGetInfo<T>(string serverName = null, int level = 0) where T : struct
int ret = NetServerGetInfo(serverName, level, out ptr);
var serverInfo = NetServerGetInfo<SERVER_INFO_101>("SVR0123");
if(NetServerGetInfo(domainInfo.DomainControllerName, 101, out pSI)==0) |