How can I check to see if my program is already running

BlitzPlus Forums/BlitzPlus Programming/How can I check to see if my program is already running

It seems to me the problem with using flags (whether they be files or environment variables) is that if something crashes, the flag won't be reset.

Perhaps a better way might be to use a simple Win API call to FindWindow with your window title or something.

Thoughts?