dialogs shuffle around when progmgr is the default shell, shutdown dialog refuses to work (boo!)

This commit is contained in:
freedom
2023-07-20 04:15:21 -06:00
parent 7db4efca96
commit 292b58be46
6 changed files with 48 additions and 24 deletions

View File

@@ -35,25 +35,25 @@ BOOL RunFile(HWND hWndOwner,
return TRUE;
}
return 0;
return FALSE;
}
/* * * *\
ShutdownDlg -
ExitWindowsDialog -
Produces a Shutdown dialog window.
RETURNS -
True if successful, false if unsuccessful.
\* * * */
BOOL ShutdownDlg(HWND hWndOwner)
BOOL ExitWindowsDialog(HWND hWndOwner)
{
HMODULE hLib = LoadLibrary(L"shell32.dll");
if (hLib) {
FARPROC fLib = GetProcAddress(hLib, MAKEINTRESOURCEA(60));
FARPROC fLib = GetProcAddress(hLib, (LPCSTR)60);
if (fLib(hWndOwner))
FreeLibrary(hLib);
return TRUE;
}
return 0;
return FALSE;
}