Description

This function will return number of currently active application instances.

Availability

Protection method: All
Application status: All
Required features: Limit number of application instances

Declaration

Visual C/C++
extern "C" __declspec(dllimport) int __stdcall CountActiveInstances();
Visual Basic
Declare Function CountActiveInstances Lib "pcgint.dll" Alias "_CountActiveInstances@0" () As Long
Delphi
function CountActiveInstances():longint;stdcall; external 'pcgint.dll' name '_CountActiveInstances@0';
Delphi 64bit
function CountActiveInstances(): Int64; stdcall; external 'pcgint64.dll';

Parameters

None

Return values

Function will return number of currently active instances.

Zero (0) is returned in case "Limit number of application instances" option is not enabled.