mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[ui] produce a sound and flash taskbar icon on success/error
* Closes #973
This commit is contained in:
parent
bfecb9e29f
commit
92d046e663
4 changed files with 28 additions and 6 deletions
15
src/stdlg.c
15
src/stdlg.c
|
@ -1856,6 +1856,21 @@ void ClrFormatPromptHook(void) {
|
|||
fp_weh = NULL;
|
||||
}
|
||||
|
||||
void FlashTaskbar(HANDLE handle)
|
||||
{
|
||||
FLASHWINFO pf;
|
||||
|
||||
if (handle == NULL)
|
||||
return;
|
||||
pf.cbSize = sizeof(FLASHWINFO);
|
||||
pf.hwnd = handle;
|
||||
// Could also use FLASHW_ALL to flash the main dialog)
|
||||
pf.dwFlags = FLASHW_TIMER | FLASHW_TRAY;
|
||||
pf.uCount = 5;
|
||||
pf.dwTimeout = 75;
|
||||
FlashWindowEx(&pf);
|
||||
}
|
||||
|
||||
#ifdef RUFUS_TEST
|
||||
static __inline LPWORD lpwAlign(LPWORD addr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue