htools

 

Displaying the "Shut Down Windows" dialog

image1

'The following code snippet displays the "Shut Down Windows" dialog.
'Is uses undocumented API function in shell32.dll

Private Declare Sub ShutDownDialog Lib "shell32.dll" Alias "#60" (ByVal hwndOwner As Long)

Private Sub cmdShowShutDown_Click()
    ShutDownDialog hWnd
End Sub


      

Download this project