NWSetFileServerDateAndTime

Sets the date and time of a NetWare server.

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Server Environment

Syntax

  #include <nwserver.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE N_API  NWSetFileServerDateAndTime  ( 
     NWCONN_HANDLE   conn,  
     nuint8          year,   
     nuint8          month,  
     nuint8          day,  
     nuint8          hour,  
     nuint8          minute,  
     nuint8          second);
  

Delphi Syntax

  uses calwin32 
   
  Function NWSetFileServerDateAndTime 
    (conn : NWCONN_HANDLE; 
     year : nuint8; 
     month : nuint8; 
     day : nuint8; 
     hour : nuint8; 
     minute : nuint8; 
     second : nuint8 
  ) : NWCCODE; 
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
year
(IN) Specifies the value corresponding to the year (0-179).
month
(IN) Specifies the month value (1=January; 12=December).
day
(IN) Specifies the day value (1-31).
hour
(IN) Specifies the hour value (0=midnight; 23=11 p.m.).
minute
(IN) Specifies the minute value (0-59).
second
(IN) Specifies the second value (0-59).

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x89C6

NO_CONSOLE_PRIVILEGES

Remarks

To call NWSetFileServerDateAndTime, you must have console operator rights.

The year parameter contains the following values which correspond to the specified years:

NCP Calls