GetLocalTime ()

From ISXKB

Revision as of 17:12, 26 December 2007 by Markus (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

This article shows how to use the Windows API function GetLocalTime with Inno Setup. Note that Inno Setup has the built-in function GetDateTimeString () which can be used in similiar ways.

Contents

Declaration

The following declaration is required in a [Code] section:

type
  TSystemTime = record
    wYear : Word;
    wMonth : Word;
    wDayOfWeek : Word;
    wDay : Word;
    wHour : Word;
    wMinute : Word;
    wSecond : Word;
    wMilliseconds : Word;
  end;


procedure GetLocalTime (var lpSystemTime: TSystemTime);
 external 'GetLocalTime@kernel32.dll';

GetLocalTime () at MSDN

Examples

See Also

Personal tools
Ads: