Limiting Program Instances On Windows.

I discovered this issue while I was working on a Windows utility. I wanted to allow only one instance of my utility to run at a time. In this article, I will explain two potential methods and provide code for limiting program instances via a named mutex.

This article has been edited and re-posted from my old blog.