Exemple #1
0
        internal PSEventingKeyHandler(bool hookNow)
        {
            _managedThreadId = Thread.CurrentThread.ManagedThreadId;
            _handler         = HookCallback;
            _hCWnd           = NativeMethods.GetConsoleWindow();

            if (hookNow)
            {
                Hook();
            }
        }
Exemple #2
0
        internal PSEventingKeyHandler(bool hookNow)
        {
            Dump(".ctor");

            m_handler = new LowLevelKeyboardProcHandler(HookCallback);
            m_hCWnd   = NativeMethods.GetConsoleWindow();

            if (hookNow)
            {
                Hook();
            }
        }