Keyboard hook from Windows Service

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
 
A

Allan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top