Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.14 KB

RestartDialog.md

File metadata and controls

53 lines (36 loc) · 1.14 KB

Home

Function name : RestartDialog

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.


Code examples:

Using the RestartDialog function -- restarting Windows

Declaration:

int RestartDialog(
	HWND hParent,
	LPCWSTR pszPrompt,
	DWORD dwFlags
);  

FoxPro declaration:

DECLARE INTEGER RestartDialog IN shell32;
	INTEGER hParent,;
	STRING  pszPrompt,;
	LONG    dwFlags
  

Parameters:

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.


Return value:

Returns the identifier of the button that was pressed to close the dialog box.