PA_CountActiveProcess


version 2003


PA_CountActiveProcess → long

Parameter Type Description
This command does not require any parameters
Function result long Number 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