Older Version Newer Version

StPendl StPendl May 8, 2011

=Allowing only one instance of your program=
//[[user:StPendl|1304859458]]//
[[toc]]
----
==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 **mut**ually **ex**clusive access, in short Mut-Ex or Mutex.

MSDN has a nice article about [[@http://msdn.microsoft.com/en-us/library/ms684266(VS.85).aspx|Mutex Objects]], which you should read to get a general understanding of the subject.

==The API functions involved==
Text here.
[[code format="lb"]]
'code here
[[code]]

==Third Part Title==
Text here.
[[code format="lb"]]
'code here
[[code]]