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

Can I do this using the Win32 API?

Status
Not open for further replies.

khilscher

Programmer
Joined
May 28, 2002
Messages
8
Location
CA
I would like to write a software app or service using C or C++ that monitors where a user clicks in Windows 9x/2000 GUI and what commands they enter into the command prompt. This is intended as an educational tool. A student will receive a set of instructions (ie: open Notepad, enter some text, save the document as c:\mytextfile.txt) and then must act upon those instructions. The software program will monitor where the student clicks and what text he/she enters and give them an evaluation at the end.

Any ideas if this is possible in Windows 9x/2000? We've done something similar for Solaris and BASH, but in Windows it seems to be more challenging.

Thanks for any advice!

Kevin
 
It is easy, if You wish to do it in a Window You have created. A lot of samples on MSDN show how to work with mouse and keyboard input. It is easier to write such program as to say what You have to do to write it.
If You wish to observe all students actions, You must write two drivers (for 9x and 2000) with DDK - it is not so easy.
 
Why DDK? And if so, which one? I was thinking I could just use WH_Mouse, WH_Keyboard, or WH_CBT as hooks to monitor what students do. Do these hooks only work within app windows I create?

Thanks,

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top