Delphi .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Getting the system time of another machine on LAN
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
How can I get the system time of another machine on Lan? Thanx
Answer:
Windows NT:
See API for function NetRemoteTOD
type
NET_API_STATUS = DWORD;
function NetRemoteTOD (UncServerName: LPCWSTR; BufferPtr: Pointer): NET_API_STATUS; stdcall;
Win 9x supports this in a 16bit library, so you either need to write an external 16bit application or you use thunking to call the 16bit DLL from your 32bit app.
There is a freeware unit QTthunk that I used years ago.. search the net for file thunks.zip
Comments:
|