mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:02:56 +00:00
[TASKMGR] Hold Shift to bypass MessageBox confirmation (#5845)
Allow the user to hold shift to automatically answer IDYES when killing/debugging a process or changing the priority.
This commit is contained in:
parent
31876ba8c2
commit
5d1be078f8
5 changed files with 13 additions and 4 deletions
|
@ -1056,6 +1056,14 @@ void TaskManager_OnTabWndSelChange(void)
|
|||
}
|
||||
}
|
||||
|
||||
BOOL ConfirmMessageBox(HWND hWnd, LPCWSTR Text, LPCWSTR Title, UINT Type)
|
||||
{
|
||||
UINT positive = ((Type & 0xF) <= MB_OKCANCEL ? IDOK : IDYES);
|
||||
if (GetKeyState(VK_SHIFT) < 0)
|
||||
return TRUE;
|
||||
return (MessageBoxW(hWnd, Text, Title, Type) == positive);
|
||||
}
|
||||
|
||||
VOID ShowWin32Error(DWORD dwError)
|
||||
{
|
||||
LPWSTR lpMessageBuffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue