WinApi hooks isn't work in MS Word. RRS feed

  • Question

  • I'm using MS WORD 2016. I develop VSTO app and I need to detect key press events. I make it with WinApi hooks, but it hooks all key press but only not in the MS WORD. 
    int WH_KEYBOARD = 13;
    SetWindowsHookEx(WH_KEYBOARD, proc, IntPtr.Zero, 0);

    Wednesday, September 12, 2018 9:13 AM