Tuesday, April 13, 2010

Identify a running instance - A Software tip

Identifying a running Instance:

Sometimes, It would be very helpful not to start a new instance if another instance is already running. Have your software create a Mutex once it is started and failure to do so, means another instance is already running.

Windows provides Standard APIs to create Mutex, CreateMutex, read through the link below about Mutex Windows API. Obviously, Name of Mutex must be unique and can be magic to avoid unexpected.

No comments:

Post a Comment