CoPas Coding Ini DiModul
' SHUT DOWN AND RESTART IN VB6
Public Declare Function ExitWindows _
Lib "user32" Alias "ExitWindowsEx" _
(ByVal dwOptions As Long, ByVal dwReserved As Long) As Long
Const EWX_LogOff As Long = 0
Const EWX_SHUTDOWN As Long = 1
Const EWX_REBOOT As Long = 2
Const EWX_FORCE As Long = 4
CoPas Coding Ini DiCmdShutDown(Command Button)
Private Sub CmdShutDown()
'Shut down windows
ExitWindows EWX_SHUTDOWN, &HFFFFFFFF
End Sub
Tidak ada komentar:
Posting Komentar