[DllImport("Netapi32.dll", CharSet=CharSet.Unicode)]
static extern int NetRemoteTOD(string UncServerName, ref IntPtr BufferPtr);
VB Signature:
<DllImport("netapi32", CharSet:=CharSet.Unicode)> Function NetRemoteTOD( _
ByVal UncServerName As String, ByRef BufferPtr As IntPtr) As Integer
End Function!!!!User-Defined Types:
Frees the memory allocated by network management functions.
6/21/2016 8:26:32 AM - -63.226.251.37
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.