From e64818967374ebdadf6f22d18296e7bc6088277b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 25 Sep 2013 12:07:46 +0000 Subject: IsFullScreen(), IsWorkstationLocked(), IsScreenSaverRunning() moved to the core git-svn-id: http://svn.miranda-ng.org/main/trunk@6226 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/delphi/m_core.inc | 15 ++++++++++++--- include/m_core.h | 5 +++++ 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc index abc3713971..40298ee87b 100644 --- a/include/delphi/m_core.inc +++ b/include/delphi/m_core.inc @@ -742,8 +742,17 @@ procedure mir_unsubclassWindow(Wnd:HWND; WndProc:TWNDPROC); stdcall; external CoreDLL name 'mir_unsubclassWindow'; /////////////////////////////////////////////////////////////////////////////// - -procedure UnloadCoreModule(); stdcall; - external CoreDLL name 'UnloadCoreModule'; +// Windows utilities + +function IsWinVerVistaPlus():int; stdcall; + external CoreDLL name 'IsWinVerVistaPlus'; +function IsWinVer7Plus():int; stdcall; + external CoreDLL name 'IsWinVer7Plus'; +function IsFullScreen():int; stdcall; + external CoreDLL name 'IsFullScreen'; +function IsWorkstationLocked():int; stdcall; + external CoreDLL name 'IsWorkstationLocked'; +function IsScreenSaverRunning():int; stdcall; + external CoreDLL name 'IsScreenSaverRunning'; {$ENDIF} diff --git a/include/m_core.h b/include/m_core.h index 93e97b1ba6..accab97bf1 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -898,10 +898,15 @@ MIR_CORE_DLL(void) mir_unsubclassWindow(HWND hWnd, WNDPROC wndProc); MIR_CORE_DLL(void) KillModuleSubclassing(HMODULE hInst); /////////////////////////////////////////////////////////////////////////////// +// Windows utilities MIR_CORE_DLL(BOOL) IsWinVerVistaPlus(); MIR_CORE_DLL(BOOL) IsWinVer7Plus(); +MIR_CORE_DLL(BOOL) IsFullScreen(); +MIR_CORE_DLL(BOOL) IsWorkstationLocked(); +MIR_CORE_DLL(BOOL) IsScreenSaverRunning(); + /////////////////////////////////////////////////////////////////////////////// MIR_CORE_DLL(void) UnloadCoreModule(void); -- cgit v1.2.3