1.13.2
This commit is contained in:
parent
a7f0944039
commit
7c06816a54
|
@ -1605,9 +1605,8 @@ _FX LRESULT Gui_WindowProcW(
|
|||
|
||||
if (uMsg == WM_QUERYENDSESSION)
|
||||
{
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE)) {
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE))
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
wndproc = __sys_GetPropW(hWnd, (LPCWSTR)Gui_WindowProcOldW_Atom);
|
||||
|
@ -1669,9 +1668,8 @@ _FX LRESULT Gui_WindowProcA(
|
|||
Gui_ProtectScreen(hWnd);
|
||||
if (uMsg == WM_QUERYENDSESSION)
|
||||
{
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE)) {
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE))
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
wndproc = __sys_GetPropW(hWnd, (LPCWSTR)Gui_WindowProcOldA_Atom);
|
||||
lResult = __sys_CallWindowProcA(wndproc, hWnd, uMsg, wParam, new_lParam);
|
||||
|
|
|
@ -1584,24 +1584,32 @@ _FX BOOL Gui_PrintWindow(HWND hwnd, HDC hdcBlt, UINT nFlags)
|
|||
return __sys_PrintWindow(hwnd, hdcBlt, nFlags);
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Gui_ShutdownBlockReasonCreate
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
_FX BOOL Gui_ShutdownBlockReasonCreate(
|
||||
HWND hWnd,
|
||||
LPCWSTR pwszReason
|
||||
) {
|
||||
|
||||
_FX BOOL Gui_ShutdownBlockReasonCreate(HWND hWnd, LPCWSTR pwszReason)
|
||||
{
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE)) {
|
||||
|
||||
SetLastError(ERROR_ACCESS_DENIED);
|
||||
return 0;
|
||||
}
|
||||
return __sys_ShutdownBlockReasonCreate(hWnd, pwszReason);
|
||||
}
|
||||
_FX EXECUTION_STATE Gui_SetThreadExecutionState(
|
||||
EXECUTION_STATE esFlags
|
||||
) {
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Gui_SetThreadExecutionState
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
_FX EXECUTION_STATE Gui_SetThreadExecutionState(EXECUTION_STATE esFlags)
|
||||
{
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE)) {
|
||||
|
||||
SetLastError(ERROR_ACCESS_DENIED);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue