DOCERR: Setting the System Time
PSS ID Number: Q120485
Article last modified on 09-29-1994
PSS database name: WIN32SDK

3.10
WINDOWS NT

---------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Win32 Software Development Kit (SDK) for Windows NT
   version 3.1
---------------------------------------------------------------------

There's an error in the sample code in Chapter 60, pages 406-407, section
60.2.3 Setting the System Time, of the Microsoft Win32 Programmer's
Reference, Volume 2. The sample code demonstrates changing the system time.
The following line of code is incorrect on page 407:

LookupPrivilegeValue(NULL, "SE_SYSTEMTIME_NAME", &tkp.Privileges[0].Luid);

Please change it to:

LookupPrivilegeValue(NULL, SE_SYSTEMTIME_NAME, &tkp.Privileges[o].Luid);

The code is also incorrect in the Win32 Help menu under the Time Overview,
Setting the System Time topic.

Additional reference words: 3.10
KBCategory: kbref kbdocerr
KBSubcategory: BseMisc

=============================================================================
Copyright Microsoft Corporation 1994.