Windows Dev Center

SERVICE_TIMECHANGE_INFO structure

Contains system time change settings.

Syntax


typedef struct _SERVICE_TIMECHANGE_INFO {
  LARGE_INTEGER liNewTime;
  LARGE_INTEGER liOldTime;
} SERVICE_TIMECHANGE_INFO, *PSERVICE_TIMECHANGE_INFO;

Members

liNewTime

The new system time.

liOldTime

The previous system time.

Remarks

The time values in the liNewTime and liOldTime members cannot be used directly with the time functions, which typically require a FILETIME or SYSTEMTIME structure. Convert the LARGE_INTEGER structure to a ULARGE_INTEGER structure, copy the ULARGE_INTEGER structure to a FILETIME structure, and then if necessary use the FileTimeToSystemTime function to convert the FILETIME structure to a SYSTEMTIME structure.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Winsvc.h

See also

ChangeServiceConfig2
QueryServiceConfig2

 

 

Community Additions

ADD
Show:
© 2015 Microsoft