How to use CreateMutex to detect previous application instance

By Winshots Technologies

Freeware 01 Feb 1999

In category

Code Samples > Samples > Applications

Description

The code below demonstrates the use of the CreateMutex function which checks for a previous instance of your application in the memory. In this particular case if your application is already running and you try to run it again, you will get an error message saying ’Instance of this application is already running’. This code is esspecially usefull when creating a screen saver or any other type of application which is supposed to run in a single instance mode.

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 1 250kB

Platforms:

  • Delphi 2
  • Delphi 3
  • Delphi 4

Downloads