Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Keyboard Monitoring in the CMD window

0 views
Skip to first unread message

J. Kelly McClimans

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
I have to monitor user activity on NT workstations. The requirement is
query each NT box on the net every 15 minutes and determine if any
Keyboard or Mouse activity has occurred.

To do this I have built a Hook and set it via the SetWindowsHookEx
function. This appears to work for all programs bu the MS/DOS Command
window.

I used SPY++ to emulate my code and discovered it has the same problem.

HOW DO I DETECT MOUSE OR KEYBOARD ACTIVITY IN A MS/DOS COMMAND WINDOW?


Thank You
Kelly


Michael Brown

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to

J. Kelly McClimans wrote in message <37616DB3...@lmco.com>...

Hi:

Been looking at the same problem here, but on Win95 instead of NT. On Win95
it would seem I need to cobble up a VxD to do this, because each DOS app
runs in its own VM and my monitor app, running in the System VM, doesn't see
the activity that happens in other VMs. I haven't cobbled up the VxD I need
yet, but that's what I'll try next (when I get a chance to get back to
working on this problem).

I'm not an expert on NT internals, but I suspect you're dealing with the
same problem and may well need NT's equivalent of a VxD to solve this
problem.

Good luck... I'd be interested in hearing how this turns out, as I expect
I'll need to gear up for doing NT support in the next year or two and will
likely face this problem again in that environment.


Michael Brown
m...@purdue.edu


Andy Lutomirski

unread,
Jun 12, 1999, 3:00:00 AM6/12/99
to
You probably need to layer on the keyboard class driver. See
www.sysinternals.com for code that could easily be hacked to do this.

Andy

Michael Brown <m...@nospam.purdue.edu> wrote in message
news:7jrvmn$4q7$1...@mozo.cc.purdue.edu...

0 new messages