Keyboard hook from Windows Service

  • Thread starter Thread starter Pushkar Tiwari
  • Start date Start date
P

Pushkar Tiwari

Hi,
I am trying to write a service to hook the keyboard. I am using
SetWindowsHookEx for the same.
The actual keyboard hook is in a DLL. I am able to set the hook without any
error, but still I am not able get call to my callback routines.

Same hooking works as expected when done through a normal windows
application, but it fails for service.

Can someone give some pointers on how should I go ahead to hook a keyboard
through service.

Thanks in advance.

Pushkar
 
Pushkar Tiwari said:
Hi,
I am trying to write a service to hook the keyboard. I am using
SetWindowsHookEx for the same.
The actual keyboard hook is in a DLL. I am able to set the hook without
any
error, but still I am not able get call to my callback routines.

Same hooking works as expected when done through a normal windows
application, but it fails for service.

Can someone give some pointers on how should I go ahead to hook a keyboard
through service.

Thanks in advance.

Pushkar
Sorry, this is not a development forum. I suggest you post your question in
an appropriate Technet forum.
http://www.microsoft.com/en/us/default.aspx#For+Developers
 
Back
Top