Group: Shell Functions - Library: shell32
Displays a dialog box that prompts the user to restart Microsoft® Windows®. When the user clicks the button, the function calls ExitWindowsEx to attempt to restart Windows.
Using the RestartDialog function -- restarting Windows
int RestartDialog(
HWND hParent,
LPCWSTR pszPrompt,
DWORD dwFlags
);
DECLARE INTEGER RestartDialog IN shell32;
INTEGER hParent,;
STRING pszPrompt,;
LONG dwFlags
hParent [in] A handle to the parent window.
pszPrompt [in] A NULL-terminated Unicode string that contains the text that displays in the dialog box which prompts the user.
dwFlags [in] Flags that specifies the type of shutdown.
Returns the identifier of the button that was pressed to close the dialog box.