SetWindowsHookEx in Vista

Hi,

I used SetWindowsHookEx API to capture keyboard input events. But I found one issue, in Vista, if some program was run as Administrator & the window is active, then my program won't receive the hook event any more. Could any Vista professional help me on this issue? (If I also run my program as Administrator then this issue won't happen but I have no chance to do it because I put my program in the "Run" registry, so it will be executed automatically after reboot)

Thanks,

Larry

[530 byte] By [Larry_Lai] at [2007-12-22]

Software Development for Windows Vista

Site Classified