by Storm (1 Submission)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 15th November 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Shut down windows 95/98/NT/ME/2000 using api calls
'in its click event
Private sub cmdShutdown_click()
dim lng as long
private const EWX_SHUTDOWN as long =1
lng = ExitWindowsEx(EWX_SHUTDOWN,0)
End sub