|
@@ -150,6 +150,7 @@ procedure WaitMessageWithTimeout(const Milliseconds: DWORD);
|
|
function MoveFileReplace(const ExistingFileName, NewFileName: String): Boolean;
|
|
function MoveFileReplace(const ExistingFileName, NewFileName: String): Boolean;
|
|
procedure TryEnableAutoCompleteFileSystem(Wnd: HWND);
|
|
procedure TryEnableAutoCompleteFileSystem(Wnd: HWND);
|
|
procedure CreateMutex(const MutexName: String);
|
|
procedure CreateMutex(const MutexName: String);
|
|
|
|
+function HighContrastActive: Boolean;
|
|
|
|
|
|
implementation
|
|
implementation
|
|
|
|
|
|
@@ -1577,6 +1578,15 @@ begin
|
|
Windows.CreateMutex(@SecurityAttr, False, PChar(MutexName));
|
|
Windows.CreateMutex(@SecurityAttr, False, PChar(MutexName));
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function HighContrastActive: Boolean;
|
|
|
|
+begin
|
|
|
|
+ var HighContrast: THighContrast;
|
|
|
|
+ HighContrast.cbSize := SizeOf(HighContrast);
|
|
|
|
+ Result := False;
|
|
|
|
+ if SystemParametersInfo(SPI_GETHIGHCONTRAST, HighContrast.cbSize, @HighContrast, 0) then
|
|
|
|
+ Result := (HighContrast.dwFlags and HCF_HIGHCONTRASTON) <> 0;
|
|
|
|
+end;
|
|
|
|
+
|
|
{ TOneShotTimer }
|
|
{ TOneShotTimer }
|
|
|
|
|
|
function TOneShotTimer.Expired: Boolean;
|
|
function TOneShotTimer.Expired: Boolean;
|