Thread: Shut Down PC
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_523_] Leith Ross[_523_] is offline
external usenet poster
 
Posts: 1
Default Shut Down PC


Hello Hesham,

Here is an API routine that calls the shutdown dialog.

Public Declare Function SHShutDownDialog _
Lib "shell32.dll" _
Alias "#60" _
(ByVal Display As Long) As Long


To invoke the Shutdown Dialog:

RetVal = SHShutDownDialog(0&)

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=507743