GetSystemTime ()

From ISXKB

Jump to: navigation, search

This article shows how to use the Windows API function GetSystemTime with Inno Setup. Note that Inno Setup has the built-in function GetDateTimeString () which can be used in similar 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 GetSystemTime (var lpSystemTime: TSystemTime);
 external 'GetSystemTime@kernel32.dll';

GetSystemTime () at MSDN

Example

See Also

Personal tools
Ads: