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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse and Keyboard

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
hi,
i use windows and visualc++ ,and want a code to cancel mouse and keyboard.
this is a part of my virus for the university project.
please help me.
thanks
 
I think that you should to catch the Keyboard and Mouse events and do nothing.

Go to the WinProc procedure from your code like this:

case WM_LBUTTONDOWN:
// Here is the action code when the left
// button havs been pressed, so leave it empty.
break;
case WM_RBUTTONDOWN:
// The same
break;

...... repeat this proccess until you have catch every event related to keyboard and mouse.

I hope this could be helpfull for you.

Good Luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top