mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-22 10:55:19 -04:00
[ui] ask user if they want proceed when conflicting processes are found
* Rufus now checks for processes with handles opened on the drives/volumes before starting the format operation and asks the user if they want to continue. * This mimics Windows' behaviour when formatting drives, and actually uses the same message as the one from shell32.dll.mui. * Closes #773
This commit is contained in:
parent
bed889718e
commit
b4a2c06a2e
8 changed files with 127 additions and 10 deletions
|
@ -823,6 +823,9 @@ BOOL Notification(int type, const notification_info* more_info, char* title, cha
|
|||
notification_is_question = FALSE;
|
||||
|
||||
switch(type) {
|
||||
case MSG_WARNING_QUESTION:
|
||||
notification_is_question = TRUE;
|
||||
// Fall through
|
||||
case MSG_WARNING:
|
||||
hMessageIcon = LoadIcon(NULL, IDI_WARNING);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue