PointerDeviceDriver.WindowsHook.Dispose C# (CSharp) Method

Dispose() public method

Removes the current hook set by SetWindowsHook.
public Dispose ( ) : void
return void
        public void Dispose()
        {
            if( _hookHandle != null )
            {
                Win32Wrapper.UnhookWindowsHookEx( _hookHandle.ToInt32() );
                _hookHandle = IntPtr.Zero;
            }
        }