The new LocalHook implementation is designed to be more extensible and easier to use.
Added a HookFactory class to allow Hook creation without needing to reference the concrete LocalHook class. You can also now create a managed hook with a Delegate type, such as LocalHook to allow calling the Target and HookBypass function addresses by converting them to function delegates automatically without having to create the delegate function from a pointer manually.
Added more tests and renamed the test 'hook' folder to 'plugins' to better describe how it will be used in the future.
Also replaced the UWP pipe creation code to use the Interop classes instead of adding the Windows native methods as part of the example code to reduce code reuse.
Added more function definitions to the Interop Windows classes, borrowed from the corefx repository.
The new LocalHook implementation is designed to be more extensible and easier to use.
Added a HookFactory class to allow Hook creation without needing to reference the concrete LocalHook class. You can also now create a managed hook with a Delegate type, such as LocalHook to allow calling the Target and HookBypass function addresses by converting them to function delegates automatically without having to create the delegate function from a pointer manually.
Added more tests and renamed the test 'hook' folder to 'plugins' to better describe how it will be used in the future.
Also replaced the UWP pipe creation code to use the Interop classes instead of adding the Windows native methods as part of the example code to reduce code reuse.
Added more function definitions to the Interop Windows classes, borrowed from the corefx repository.