# Function Reference

# _WinAPI_RestartDlg

Displays a dialog box that prompts the user to restart Microsoft Windows

#include <WinAPIDlg.au3>
_WinAPI_RestartDlg ( [$sText = '' [, $iFlags = $EWX_REBOOT [, $hParent = 0]]] )

## Parameters

$sText | [optional] The text that displays in the dialog box which prompts the user.
$iFlags | [optional] The flags that specify the type of shutdown. This parameter must include one of the following values. $EWX_LOGOFF $EWX_POWEROFF $EWX_REBOOT (Default) $EWX_SHUTDOWN This parameter can optionally include the following values. $EWX_FORCE $EWX_FORCEIFHUNG
$hParent | [optional] Handle to the parent window.

## Return Value

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

## See Also

Search RestartDialog in MSDN Library.