Esempio n. 1
0
        internal override int GetHookCode(WindowsHook.HookType type)
        {
            switch (type)
            {
                case WindowsHook.HookType.Keyboard:
                    return (int)NativeEnums.HookType.WH_KEYBOARD;

                case WindowsHook.HookType.Mouse:
                    return (int)NativeEnums.HookType.WH_MOUSE;

                case WindowsHook.HookType.Message:
                    return (int)NativeEnums.HookType.WH_CALLWNDPROC;

                default:
                    throw new NotImplementedException();
            }
        }
Esempio n. 2
0
 internal abstract int GetHookCode(WindowsHook.HookType type);