DelphiFAQ Home Search:
General :: Programming :: Delphi :: Network
Network (local network and Internet) programming under Windows with Delphi.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

Getting the system time of another machine on LAN

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

Generated 0:01:52 on Nov 20, 2017