Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Embedded
Windows Embedded CE
Windows CE 5.0
Windows CE Features
Core OS Services
Core OS Reference
Time Reference
Time Functions
 SetSystemTime
Platform Builder for Microsoft Windows CE 5.0
SetSystemTime
Send Feedback

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

BOOL SetSystemTime( 
  const SYSTEMTIME* lpSystemTime
); 

Parameters

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

Return Values

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

Time Functions | GetSystemTime | SYSTEMTIME | Timer Driver Reference


Send Feedback on this topic to the authors

Feedback FAQs


© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker