Ejemplo n.º 1
0
        public static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam)
        {
            if (nCode >= 0)
            {
                int vkCode = Marshal.ReadInt32(lParam);
                _window.KeyEventHandler((Win32Wrapper.KeyMessages)wParam, (int)wParam, vkCode);
            }

            return(Win32Wrapper.CallNextHookEx(_hookID, nCode, wParam, lParam));
        }