Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locking Display and Keyboard

Status
Not open for further replies.

mitzan

Programmer
Apr 20, 2002
2
RO
Hallo

I have to write a program that locks the display and/or
the keyboard so that input from users cannot be possible.
(Reenabling is done by remote). I have managed the mouse
so far but it's not enough.
Any suggestions are welcomed.
Thank you in anticipation.

Mitzan
 
You might try the BlockInput API


Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long

'block the mouse and keyboard input
BlockInput True

'unblock the mouse and keyboard input
BlockInput False


Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top