Older Version Newer Version

StPendl StPendl May 8, 2011

Allowing only one instance of your program

- StPendl StPendl May 8, 2011

The Basics

Every now and then one wants to make sure that only one instance of his application is running to prevent problems with shared resources when multiple instances are run concurrently.

This is called mutually exclusive access, in short Mut-Ex or Mutex.

MSDN has a nice article about Mutex Objects, which you should read to get a general understanding of the subject.

The API functions involved

Text here.
'code here

Third Part Title

Text here.
'code here