IsWindow
is not too useful for what you want (you don't have hWnd
, the handle of the window). FindWindow would be much more helpful; but the problem is that it (and other equivalent WinAPI calls) takes the name of the given window as argument and, for MS Word, this is the name of the document (what I guess that you don't know).
A simple and reliable approach would be looking at the running processes:
System.Diagnostics.Process[] Procs = System.Diagnostics.Process.GetProcessesByName("winword");
if (Procs.Length >= 1)
{
//There is an opened Word document
}