Interface IGlobalHookProvider
Represents a provider of low-level global hook functionality.
public interface IGlobalHookProvider
Methods
Run()
Runs the global hook and blocks the thread until it's stopped.
UioHookResult Run()
Returns
- UioHookResult
The result of the operation.
- See Also
SetDispatchProc(DispatchProc?, nint)
Sets the hook callback function.
void SetDispatchProc(DispatchProc? dispatchProc, nint userData)
Parameters
dispatchProc
DispatchProcThe function to call when an event is raised, or null to unset the function.
userData
nintCustom data to pass to the callback. Should not be used, and Zero should always be passed.
- See Also
Stop()
Stops the global hook.
UioHookResult Stop()
Returns
- UioHookResult
The result of the operation.
- See Also