by vicky jadhav (5 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 12th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Power off the computer
API Declarations
'Declare the function below in a standard module
Public sub Form_Load()
Call ExitWindowsEx(EWX_POWEROFF,0)
End Sub
'This program power off your machine