NWGetFileServerUTCTime

Returns the Coordinated Universal Time (UTC) setting of a server.

Local Servers:blocking
Remote Servers:blocking
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98, Windows 2000, Windows XP
Library:Cross-Platform NDS (NET*.*)
Service:NDS

Syntax

C

  #include <nwnet.h> 
  or 
  #include <nwdsmisc.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE)  NWGetFileServerUTCTime  ( 
     NWCONN_HANDLE   conn,  
     pnuint32        time); 
  

Pascal

  uses netwin32 
   
  Function NWGetFileServerUTCTime 
    (conn : NWCONN_HANDLE; 
     time : pnuint32 
  ) : nint;
  

Parameters

conn

(IN) Specifies the connection handle to the server whose time needs to be retrieved.

time

(OUT) Points to the time setting (in UTC time) of the server.

Return Values

These are common return values.

0x0000 0000

SUCCESSFUL

0xFD6D

ERR_TIME_NOT_SYNCHRONIZED

nonzero value

Nonzero values indicate errors. See NDS Return Values (–001 to –799).

Remarks

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).

NCP Calls