Disable the Mouse and Keyboard of the Client by the server
Pls. help me! I need to make a system for our Research Project that could disable the mouse and keyboard of the client through the server computer. I am a beginner for this program.
Can anyone give me a detailed procedure on how to establish/make the system.
Re: Disable the Mouse and Keyboard of the Client by the server
Welcome to the forums. :wave:
My one question is: why?
Re: Disable the Mouse and Keyboard of the Client by the server
that would be kick arse :) i second that question.
Re: Disable the Mouse and Keyboard of the Client by the server
You can use the BlockInput API.
Done in Visual Studio 2003
VB Code:
Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long
Private WithEvents timer1 As New Timer
Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
timer1.Interval = 5000
timer1.Start()
BlockInput(True)
End Sub
Private Sub timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles timer1.Tick
BlockInput(False)
timer1.Stop()
End Sub
As far as executing the code remotely, you're on your own. We don't make programs that can be used for exploitation or annoyance.
Besides, if you've done client/server programming before, you should be able to figure this one out on your own.