>Another note, all FoxPro windows have the same class name: Fox_4000001.
I noticed that in Visual FoxPro 3 but thought it was solved in Visual FoxPro 5.
>If I were to guess at the problem you're trying to solve, I'd say it was twofold. One, FindWindow only works if you have the exact title name, and it doesn't work on child windows. Two, you're trying to get the handle of a child window. Am I close?
What I need to do is to avoid using the Window title in order to detect at startup if the application is already running. Usually, I use a C program from the icon which is calling my VFP EXE. However, in this case, I don't have it.