Sample for API LockFile 1.0

By -Neftali- German Estevez

Freeware 07 Apr 2006

In category

Code Samples > Samples > Applications

Description

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.

Advantages:

  • 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).

Informations

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

Platforms:

  • Delphi 6

Downloads