Guidance
指路人
g.yi.org
software / rapidq / Examples / Win32API & DLL / ShutDown.bas

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
     RUN("rundll32.exe user.exe,exitwindows")

' Or:

' From: HaGGi
' THE CODE TO SHUT DOWN A PC
' Aug 30th, 2002, 9:55pm ?

'These are handy to know too....

     RUN("rundll32.exe shell32.dll,SHExitWindowsEx " + STR$(n))

'where n is one, or a combination of, the following numbers:

' 0 - LOGOFF
' 1 - SHUTDOWN
' 2 - REBOOT
' 4 - FORCE
' 8 - POWEROFF

掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Mon 2024-10-7  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2009-07-25 17:29:44