* SetThreadExecutionState

This commit is contained in:
marcoonthegit 2023-02-03 10:34:57 +01:00
parent e01da2408f
commit 4871ad4707
2 changed files with 4 additions and 1 deletions

View File

@ -6416,6 +6416,9 @@ const
GR_GDIOBJECTS_PEAK = 2; { Peak count of GDI objects }
GR_USEROBJECTS_PEAK = 4; { Peak count of USER objects }
ES_CONTINUOUS = dword($80000000);
ES_DISPLAY_REQUIRED = dword($00000002);
ES_SYSTEM_REQUIRED = dword($00000001);
{$endif read_interface}
{$ifdef read_implementation}

View File

@ -1342,7 +1342,7 @@ function CONSOLE_REAL_OUTPUT_HANDLE : HANDLE;
// only in widechar variant.
function GetDateFormatEx(LocaleName : pwidechar;Flags : DWORD;Date : PSYSTEMTIME; Format : pwidechar; DateBuffer : pwidechar; BufferLen : longint; Calendar : pwidechar) : BOOL; stdcall; external 'kernel32' name 'GetDateFormatEx';
function SetThreadExecutionState( EXECUTION_STATE : Cardinal ) : Cardinal; stdcall; external 'kernel32.dll' name 'SetThreadExecutionState';
{$endif read_interface}