internal PSEventingKeyHandler(bool hookNow) { _managedThreadId = Thread.CurrentThread.ManagedThreadId; _handler = HookCallback; _hCWnd = NativeMethods.GetConsoleWindow(); if (hookNow) { Hook(); } }
internal PSEventingKeyHandler(bool hookNow) { Dump(".ctor"); m_handler = new LowLevelKeyboardProcHandler(HookCallback); m_hCWnd = NativeMethods.GetConsoleWindow(); if (hookNow) { Hook(); } }