The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
The Anything and Everything forum is still open.
SetWindowsHookEx
|
|||
|
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 () |/|
|
||
|
|||
|
|||
|
Rank: ? (30)
Member #: 14124 |
anyone?
|) R A G () |/|
|
||
|
|||
|
|||
|
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().
|
||
|
|||
|
|||
|
Rank: ? (30)
Member #: 14124 |
aaah kk
|) R A G () |/|
|
||
|
|||
|
|||
|
Rank: ? (30)
Member #: 14124 |
thx
|) R A G () |/|
|
||
|
Please login or register to post a reply.
