VB and VBA Users Source Code: Display the "Setup Reboot" dialog
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Display the "Setup Reboot" dialog
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Thursday, February 15, 2001
Hits:
533
Category:
Windows API
Article:
Below is a simple routine to perform a reboot after an installation process has finished. Private Declare Function SetupPromptReboot Lib "setupapi.dll" (ByRef FileQueue As Long, ByVal Owner As Long, ByVal ScanOnly As Long) As Long 'Purpose : Asks the user if he wants to reboot the system, ' then, if requested, initiates the reboot. 'Inputs : N/A 'Outputs : N/A 'Author : Andrew Baker 'Date : 11/09/2000 'Notes : 'Revisions : Sub SetupPromptRestart() Call SetupPromptReboot(ByVal 0&, 0&, 0&) End Sub
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder