コード例 #1
0
ファイル: Hooker.cs プロジェクト: jujinkim/capslock_indicator
        public Hooker(CapslockIndicator capslockIndicator)
        {
            this.capslockIndicator = capslockIndicator;

            keyBoardDelegate = KeyboardHookDelegate;
            keyBoardHandle   = SetWindowsHookEx(WH_KEYBOARD_LL, keyBoardDelegate, IntPtr.Zero, 0);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            CapslockIndicator capslockIndicator = new CapslockIndicator();

            capslockIndicator.run();
        }