It works for me if I change the call from FindWindowExA to FindWindowExW, and use the window title “Document 1 - Microsoft Word”.
It works for me if I change the call from FindWindowExA to FindWindowExW, and use the window title “Document 1 - Microsoft Word”.