by Sahir (5 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
this code can be used to turnoff the computer
Assumes
code is usable if motherbord support for api given
Side Effects
unknown yet
API DeclarationsSendMessage
SC_MONITORPOWER = &HF170&
Const MONITOR_ON = -1&
Const MONITOR_OFF = 2&
Const WM_SYSCOMMAND = &H112
Download turnoff monitor (1 KB)