Changes between Version 9 and Version 10 of How_Microsoft_Windows_NT_4.0_handles_internal_Time


Ignore:
Timestamp:
01/19/12 16:31:00 (10 years ago)
Author:
branden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • How_Microsoft_Windows_NT_4.0_handles_internal_Time

    v9 v10  
    2626Attachment 1: 
    2727 
    28 This is part of the documentation from an app called Timeserv.exe which is in the NT Resource Kit (server only) The program allows you use an external timesource to set time on an NT box. It can use the Naval Observatory (via modem) a GPS signal (via a com port) or even a user supplied hardware board (using his .dll to communicate with it) Once configured, this app runs as an NT service with no user intervention.  
     28This is part of the documentation from an app called Timeserv.exe which is in the NT Resource Kit (server only) The program allows you use an external timesource to set time on an NT box. It can use the Naval Observatory (via modem) a GPS signal (via a com port) or even a user supplied hardware board (using his .dll to communicate with it) Once configured, this app runs as an NT service with no user intervention. [BR] 
    2929The author's homepage is http://home1.gte.net/dougho/TimeServ.html 
    3030 
    31 Accuracy Information for Windows NT  
    32  
    33 From !TimeServ documentation  
    34  
     31Accuracy Information for Windows NT [BR] 
     32From !TimeServ documentation [BR] 
    3533http://home1.gte.net/dougho/TimeServ.html 
    3634 
     
    4240This documentation is from the Microsoft SDK for !SetSystemTimeAdjustment(). 
    4341 
    44 The !SetSystemTimeAdjustment function tells the system to enable or disable periodic time adjustments to its time of day clock. Such time adjustments are used to synchronize the time of day with some other source of time information. When periodic time adjustments are enabled, they are applied at each clock interrupt.  
     42The !SetSystemTimeAdjustment function tells the system to enable or disable periodic time adjustments to its time of day clock. Such time adjustments are used to synchronize the time of day with some other source of time information. When periodic time adjustments are enabled, they are applied at each clock interrupt. [BR] 
    4543BOOL !SetSystemTimeAdjustment(  
    46   
    4744 
    48 DWORD dwTimeAdjustment, // size, in 100-nanosecond units, of a periodic time adjustment  
    49 BOOL bTimeAdjustmentDisabled // whether periodic time adjustment is to be disabled or enabled  
     45DWORD dwTimeAdjustment, // size, in 100-nanosecond units, of a periodic time adjustment [BR] 
     46BOOL bTimeAdjustmentDisabled // whether periodic time adjustment is to be disabled or enabled [BR] 
    5047); 
    5148 
    5249Parameters 
    5350 
    54 dwTimeAdjustment  
     51dwTimeAdjustment [BR] 
    5552Specifies the number of 100-nanosecond units added to the time-of-day clock at each clock interrupt if periodic time adjustment is enabled. 
    5653 
    57 bTimeAdjustmentDisabled  
     54bTimeAdjustmentDisabled [BR] 
    5855Specifies the time adjustment mode that the system is to use. Periodic system time adjustments can be disabled or enabled. 
    5956 
     
    6259A value of FALSE specifies that periodic time adjustment is to be enabled, and will be used to adjust the time-of-day clock. The system will not interfere with the time adjustment scheme, and will not attempt to synchronize time of day on its own. The system will add the value of dwTimeAdjustment to the time of day at each clock interrupt. 
    6360 
    64 Return Value  
    65 If the function succeeds, the return value is TRUE.  
     61Return Value [BR] 
     62If the function succeeds, the return value is TRUE. [BR] 
    6663If the function fails, the return value is FALSE. To get extended error information, call !GetLastError. One way the function can fail is if the caller does not possess the SE_SYSTEMTIME_NAME privilege. 
    6764 
    68 Remarks  
     65Remarks [BR] 
    6966The !GetSystemTimeAdjustment and !SetSystemTimeAdjustment functions support algorithms that synchronize the time-of-day clock, reported via !GetSystemTime and !GetLocalTime, with another time source using a periodic time adjustment. 
    7067 
     
    7774An application must have system-time privilege (the SE_SYSTEMTIME_NAME privilege) for this function to succeed. The SE_SYSTEMTIME_NAME privilege is disabled by default. Use the !AdjustTokenPrivileges function to enable the privilege before calling !SetSystemTimeAdjustment, and then to disable the privilege after the !SetSystemTimeAdjustment call. 
    7875 
    79 See Also  
     76See Also [BR] 
    8077!AdjustTokenPrivileges, !GetSystemTimeAdjustment, !SetLocalTime, !SetSystemTime, !SystemTimeToTzSpecificLocalTime  
    8178