Sample for API LockFile 1.0

By -Neftali- German Estevez

Freeware 07 Apr 2006

In category

Code Samples > Samples > Applications


This’s a simple use sample of the API LockFile to detect active instances of an application. If you use a application in a network and you want to kwon wath instance of this application are running, this’s a simple method.

Each aplication/station have a ID assigned (Integer) and you must use a shared file and the LockFile API to detect are runnig. It’s very simple and effective.


  • If a station/application terminate abnormally (CTRL+ALT+SUPR) the system release automaticaly their lock. No code is needed.
  • The lock file always will have size 0 (bytes).


  • Status: Fully functional
  • Source: FW
  • Size: 354 348kB


  • Delphi 6