Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2013-05-20, 07:27pm
SetWindowsHookEx
Subject: SetWindowsHookEx  ·  Posted: 2004-04-28, 03:55pm
Rank: ? (30)
Member #: 14124
SetWindowsHookEx(WH_KEYBOARD,KeyBoardProc,0,0);

Ive been having a little trouble with this function... Could someone provide a quick overview of how to use it? Also, i would apreciate an example program that shows how to use this and dump what it captures to the screen. As allways, all help is apreciated.

|) R A G () |/|
 
  Reply to this ·  Post link ·  Top
Subject: Re: SetWindowsHookEx  ·  Posted: 2004-04-30, 10:42am
Rank: ? (30)
Member #: 14124
anyone?

|) R A G () |/|
 
  Reply to this ·  Post link ·  Top
Subject: Re: SetWindowsHookEx  ·  Posted: 2004-05-03, 03:22pm
Rank: ? (31)
Member #: 14393
If you want to use the hook for the whole system (global) then the KeyBoardProc must be in a dll and the third parameter must be a HINSTANCE to the dll (which you can get with a call to LoadLibrary) and the fourth parameter must be 0. If your installing it for the current thread or process than the third parameter is 0 and the fourth is GetCurrentThreadId().
 
  Reply to this ·  Post link ·  Top
Subject: Re: SetWindowsHookEx  ·  Posted: 2004-05-20, 05:11pm
Rank: ? (30)
Member #: 14124
aaah kk

|) R A G () |/|
 
  Reply to this ·  Post link ·  Top
Subject: Re: SetWindowsHookEx  ·  Posted: 2004-05-20, 05:12pm
Rank: ? (30)
Member #: 14124
thx

|) R A G () |/|
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

Penguino AVR

Want to learn about robotics or microcontrollers?
Check out the Penguino AVR from our friends at
Icy Labs