Share via


SetSystemTime (Compact 2013)

3/28/2014

This function sets the current system time and date. The system time is expressed in UTC.

Syntax

BOOL SetSystemTime(
  const SYSTEMTIME* lpSystemTime
);

Parameters

  • lpSystemTime
    [in] Pointer to a SYSTEMTIME structure that contains the current system date and time.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Requirements

Header

winbase.h

Library

coredll.lib

See Also

Reference

Time Functions
GetSystemTime
SYSTEMTIME

Other Resources

Timer Driver Reference