Compartilhar via


SetSystemTime

Windows Mobile SupportedWindows Embedded CE Supported

9/8/2008

Essa função define o atual hora do sistema e data. O hora do sistema é expresso em UTC.

Syntax

BOOL SetSystemTime(
  const SYSTEMTIME* lpSystemTime
);

Parameters

  • lpSystemTime
    [no] Ponteiro para uma estrutura SYSTEMTIME que contém o atual sistema data e tempo.

Return Value

Nonzero indica sucesso. Zero indica falha. Para informações de erro estendidas get, chamar GetLastError.

Requirements

Header winbase.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Time Functions
GetSystemTime
SYSTEMTIME

Other Resources

Timer Driver Reference