mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:22:58 +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
|
@ -22,7 +22,7 @@ void DoSetPriority(DWORD priority)
|
|||
|
||||
LoadStringW(hInst, IDS_MSG_TASKMGRWARNING, szTitle, 256);
|
||||
LoadStringW(hInst, IDS_MSG_WARNINGCHANGEPRIORITY, szText, 260);
|
||||
if (MessageBoxW(hMainWnd, szText, szTitle, MB_YESNO|MB_ICONWARNING) != IDYES)
|
||||
if (!ConfirmMessageBox(hMainWnd, szText, szTitle, MB_YESNO|MB_ICONWARNING))
|
||||
return;
|
||||
|
||||
hProcess = OpenProcess(PROCESS_SET_INFORMATION, FALSE, dwProcessId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue