by Brian Molidor (3 Submissions)
Category: Complete Applications
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(9 Votes)
Ever want to freeze a computer? Well, here is some code to do it. It manipulates the API 'setparent'
Side Effects
Well, Duh. your computer will freeze
Public Declare Function SetParent Lib "user32" Alias "SetParent" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
function freeze_computer(frm as form)
call SetParent(frm.hwnd, frm.hwnd)
end function