Desktop Functions: Smart Device Functions:
|
Search Results for "NetRemoteTOD" in [All]netapi321: NetRemoteTOD
static extern int NetRemoteTOD(string UncServerName, ref IntPtr BufferPtr);
<DllImport("netapi32", CharSet:=CharSet.Unicode)> Function NetRemoteTOD( _
public class GetNetRemoteTOD
[DllImport( "netapi32.dll" , EntryPoint="NetRemoteTOD", SetLastError=true,
CallingConvention=CallingConvention.StdCall)] private static extern int NetRemoteTOD(string UncServerName, ref IntPtr BufferPtr);
public int [] xNetRemoteTOD( string ServerName )
int pintError = NetRemoteTOD(ServerName, ref pintBuffer);
} // End class GetNetRemoteTOD
GetNetRemoteTOD gnrTOD = new GetNetRemoteTOD();
TOD_Info = gnrTOD.xNetRemoteTOD( ServerName );
Console.WriteLine ("NetRemoteTOD from " + ServerName + " failed!\nError: " + err.Message ); |