Anyone that can answer, pls do:
Feb 18 2003, Jeff Dean wrote the following response on the subject of:
Windows Service to Hook the keyboard using C#
"To build a global keyboard hook as you describe, I have two
suggestions.
First, this should be build with C/C++ (native code) rather than
..NET. On receipt of a key event, a global hook handler runs
inside the context of the process that received that event.
You don't really want to run .NET inside every interactive process
on your machine. Global hooks need to be lightweight and
non-intrusive, otherwise you are likely to destablize other
applications.
Second, this should probably be deployed as a startup application,
not as a service."
I would like to know how to do this in native code. Can someone
provide some code or direct me to code that comes close? This is a key
factor in a project management application.
|