Skip to content

A managed wrapper over SetWinEventHook and UnhookWinEvent.

License

Notifications You must be signed in to change notification settings

OpenByteDev/WinEventHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinEventHook

nuget badge Unlicense

A managed wrapper over SetWinEventHook and UnhookWinEvent.

Installation

To install with NuGet use the following command in the Packet Manager Console:

Install-Package WinEventHook

Usage

Prints all events to the console:

using var hook = new WindowEventHook();
hook.EventReceived += (s, e) =>
    Console.WriteLine(Enum.GetName(typeof(WindowEvent), e.EventType));
hook.HookGlobal();
Console.Read();

Note: Your application needs a message loop to receive events.

About

A managed wrapper over SetWinEventHook and UnhookWinEvent.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages