Table of Contents

Interface IGlobalHookProvider

Namespace
SharpHook.Providers
Assembly
SharpHook.dll

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 DispatchProc

The function to call when an event is raised, or null to unset the function.

userData nint

Custom 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

See Also