Beispiel #1
0
        public void SmokeEventHandle()
        {
            IntPtr wParam = new IntPtr(32);
            IntPtr lParam = new IntPtr(0);

            this.isEventFired = false;
            using (GlobalKeyboardHook tbc = new GlobalKeyboardHook())
            {
                tbc.KeyboardPressed += testMethodWithHandle;
                Assert.NotNull(tbc);
                tbc.LowLevelKeyboardProc(0, wParam, lParam);
            }
        }