VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Freeze a computer

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

Rate Freeze a computer

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

Download this snippet    Add to My Saved Code

Freeze a computer Comments

No comments have been posted about Freeze a computer. Why not be the first to post a comment about Freeze a computer.

Post your comment

Subject:
Message:
0/1000 characters