Originally posted by: Snow
Very good example I must say but I encountered problem when compiling the sample code.
fatal error C1083: Cannot open include file: 'psapi.h': No such file or directory
Any idea guys?
Reply
Originally posted by: AjithM
It is nice idea, and you accomplished it. Great, really
Keep the spirit up.
Reply
Originally posted by: Hell Raizer
I trace it and anywhere to find Its increment...
What about its???
Originally posted by: gogeta
can some1 make me that all program and send me that by email
mailto:jarxer@hotmail.com
Originally posted by: Robert Kuster
"A thread specific hook is associated with particular thread only (Any thread owned by the calling process.). If you want to associate the hook with other processes and threads, you will have to use a systemwide hook."
Thomas,
that is NOT true. A thread-specific hook can be associated with a thread belonging to another process as well.
In general you have:
1) Local hooks, where you monitor the message traffic of any thread belonging to your process.
2) Remote hooks, which can be:
a) thread-specific -- you monitor the message traffic of a thread belonging to another process;
a) system-wide -- you monitor the message traffic for all threads currently running on the system;
If the hooked thread belongs to another process (case 2a & 2b), then your hook procedure must reside in a dynamic-link library (DLL).
Regards,
Robert Kuster
Originally posted by: Tibor
The keyboard hook desnt catch any KEYDOWN in
WindowsME command line ( msdos window, command.com).
Why? Any solution? Thanks.
kbdHook = SetWindowsHookEx( WH_KEYBOARD, KeyboardProc, dllInstance, 0);
LRESULT CALLBACK KeyboardProc( int nCode, WPARAM wParam, LPARAM lParam)
{
if( nCode < 0)
return ::CallNextHookEx( kbdHook, nCode, wParam, lParam);
if( nCode == HC_ACTION)
{
/* code */
}
return ::CallNextHookEx( kbdHook, nCode, wParam, lParam);
}
Originally posted by: praths
wel my prob is that i am unable 2 check whether the keyboard is functional or not ,as i am in2 diagnostics ,i am really in need of a solution for this problem. If nebody has clue abt finding the status of a keyboard plz mail me or post in this mailing list.
many thanks
prats
Originally posted by: neo_the_1
this code does not work well under DirectInput exclusive mode
ReplyOriginally posted by: Enrico Quasdorf
The example worked really fine until I pressed th right menu key. Then a endless amount of messages were sent to the application and the system seemed to fall asleep. I had to kill the example process.
The virtual key code, which is always sent, is 18 (VK_MENU)
Does anybody know, why? (I work under Win2000 )
ReplyOriginally posted by: Nguyen Van Binh
Hi all.
When I test this application on IE of WindowXP with Japanese characters in edit control, the application does not work. Please resolve this problem
Thanks