>George,
>
>Is there a way to refine the string match? My application is named "Drawing PDM". I use the code you lead me to to see if this app is running already and will not allow a second instance if it is. I have a user manual named Drawing PDM Users Manual. If the user manual is active the app will not start.
Steven,
Most application's show the file being worked on in the title bar, like this: "mywordfile.doc - Microsoft Word". If this is the case here, I would pass something like " - Microsoft Word" or ".doc - Microsoft Word" since it uses the $ operator to determine if the title bar contains the title passed.
If this isn't the case, then you could use FindWindow() passing the classname. If you can't use the above suggestion with Is_Run32(), let me know and I'll provide further details.
George
Ubi caritas et amor, deus ibi est