Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IntPtr SetWindowsHookEx(int, WinAPI.KeyboardHookProc, IntPtr, uint)

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

intidHook The id of the event you want to hook
WinAPI.KeyboardHookProccallback The callback.
IntPtrhInstance The handle you want to attach the event to, can be null
uintthreadId The thread you want to attach the event to, can be null

Returns

a handle to the desired hook