Returns the Coordinated Universal Time (UTC) setting of a server.
#include <nwnet.h> or #include <nwdsmisc.h> N_EXTERN_LIBRARY (NWDSCCODE) NWGetFileServerUTCTime ( NWCONN_HANDLE conn, pnuint32 time);
uses netwin32 Function NWGetFileServerUTCTime (conn : NWCONN_HANDLE; time : pnuint32 ) : nint;
(IN) Specifies the connection handle to the server whose time needs to be retrieved.
(OUT) Points to the time setting (in UTC time) of the server.
These are common return values.
0x0000 0000 |
SUCCESSFUL |
0xFD6D |
ERR_TIME_NOT_SYNCHRONIZED |
nonzero value |
Nonzero values indicate errors. See |
NWGetFileServerUTCTime determines the time setting on remote and local servers. (The time (Program Management) function returns only the time setting for local servers.)
The time placed in the location pointed to by the time parameter represents the time in seconds since January 1, 1970 (Coordinated Universal Time).