The SetupPromptReboot function asks the user if he wants to reboot the system, optionally dependent on whether any files in a committed file queue were in use during a file operation. If the user answers "yes" to the prompt, shutdown is initiated before this routine returns.
INT SetupPromptReboot(
HSPFILEQ FileQueue, // optional, handle to a file queue
HWND Owner, // parent window of this dialog box
BOOL ScanOnly // optional, do not prompt user
);
If TRUE, the user is never asked about rebooting, and system shutdown is not initiated. In this case, FileQueue must be specified. If ScanOnly is FALSE, the user is asked about rebooting, as previously described.
Use ScanOnly to determine if shutdown is necessary separately from actually initiating a shutdown.
The function returns a combination of the following flags or -1 if an error occurred:
Windows NT: Use version 4.0 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in setupapi.h.
Import Library: Link with setupapi.lib.
Overview, Functions, SetupPromptForDisk