Previous: 4.74.2.32. SetIntVec procedure To the Table of Contents Next: 4.74.2.34. SetVerify procedure
4.74.2.32. SetIntVec procedure Table of Contents 4.74.2.34. SetVerify procedure

- 4.74.2.33. -
Table of Contents
4. Standard Units
4.74. WinDos - MS-DOS function emulation for OS/2 and Win32
4.74.2. WinDos Unit Procedures and Functions
4.74.2.33. SetTime procedure


4.74.2.33. SetTime procedure

Targets: MS-DOS, OS/2, Win32


Dos Unit, WinDos Unit

Sets the current time in the operating system.

Declaration:
procedure SetTime(Hour, Minute, Second, Sec100: Word);
Remarks:
Invalid values are ignored. To get the current operating system time use GetTime.

Windows NT:
The SetTime function fails if the calling process does not have the SE_SYSTEMTIME_NAME privilege. This privilege is disabled by default.
Use the AdjustTokenPrivileges function ( WIN32.HLP ) to enable this privilege and again to disable it after the time has been set.


Previous: 4.74.2.32. SetIntVec procedure To the Table of Contents Next: 4.74.2.34. SetVerify procedure
4.74.2.32. SetIntVec procedure Table of Contents 4.74.2.34. SetVerify procedure

- 4.74.2.33. -