VB and VBA Users Source Code: Show system shut down/restart dialog
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Show system shut down/restart dialog
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Tuesday, March 13, 2001
Hits:
666
Category:
Windows API
Article:
The following routine shows the windows system shut down/restart dialog. Option Explicit Private Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal lReserved As Long) As Long 'Purpose : Shows the system shut down dialog 'Inputs : N/A 'Outputs : Returns 1 if user press cancel 'Author : Andrew Baker 'Date : 03/09/2000 13:58 'Notes : Unsupported function 'Revisions : Function SystemShowShutDown() As Long SystemShowShutDown = SHShutDownDialog(0&) End Function
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder