Hooking the keyboard

  • Thread starter Thread starter Fabiano
  • Start date Start date
F

Fabiano

Please,

is there a way i can hook the keyboard? I would like to hook everykey.
CTRL+ALT+DEL, CTRL+ESC, and all others. The user just press some keys, and
none control keys, not only at my app but all windows.
A friend told me that there's a non-documented API that let me do this, but
he didn't remember the name.

Danke.

Fabiano
 
The API is documented, look at SetWindowsHookEx and
UnhookWindowsHookEx in the Win32 API.
 
Please,

is there a way i can hook the keyboard? I would like to hook everykey.
CTRL+ALT+DEL, CTRL+ESC, and all others. The user just press some keys, and
none control keys, not only at my app but all windows.
A friend told me that there's a non-documented API that let me do this, but
he didn't remember the name.

Danke.

Fabiano

I'm working on hooks too. You can take a look at CodeProject. There
are a couple of articles that may help you.
http://codeproject.com/csharp/globalhook.asp
http://www.codeproject.com/csharp/GlobalSystemHook.asp

Hope this helps.
 
Back
Top