Declaration
public static IntPtr SetWindowsHookEx(
int idHook,
WinAPI.KeyboardHookProc callback,
IntPtr hInstance,
uint threadId
)
Summary
Sets the windows hook, do the desired event, one of hInstance or threadId must be non-null
Parameters
int | idHook |
The id of the event you want to hook |
WinAPI.KeyboardHookProc | callback |
The callback. |
IntPtr | hInstance |
The handle you want to attach the event to, can be null |
uint | threadId |
The thread you want to attach the event to, can be null |
Returns
a handle to the desired hook