PA_CountActiveProcess

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_CountActiveProcess long

ParameterTypeDescription
This command does not require any parameters
Function resultlongNumber of running processes

Description

The routine PA_CountActiveProcess returns the number of running processes. This routine does not count aborted processes.

To get the total number of processes listed in the process table, including aborted processeses, use PA_CountTotalProcess.

Example

Alert user that they may encounter problems beyond 150 processes.

   if( PA_CountActiveProcess() > 150 )
      PA_Alert("Too much processes, please contact your developer");

See Also

PA_CountTotalProcess.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next