I have a hidden Word process in the background. I need the ProcessID which I can get from GetThreadProcessID() if I have the HWND. Excel has an Hwnd variable as does PowerPoint. But...not Word. None that I could find unless it is hidden deep down inside some class.
The problem with FindWindow is they may have other versions of Word running so I wouldn't know if its the one I just launched hidden.
Any ideas would be appreciated..