JCL Help: TJclAppInstances.ProcessIDs Property
- Project summary
Search in JCL HelpSearch in all projects
Process IDs of all application instances which are sharing the TJclAppInstances.
public property ProcessIDs [Index: Integer]: DWORD;
The ProcessIDs array property contains the process IDs of all application instances which are sharing the TJclAppInstances. In effect it contains the process IDs of all running instances. The array is zero based and the highest valid index is given by TJclAppInstances.InstanceCount property. If an invalid index is specified the property reads 0. Note that it is possible that in between reading TJclAppInstances.InstanceCount and ProcessIDs, or reading ProcessIDs and it, an instance terminates thereby invalidating the process ID. Always check the result before and after using the returned process ID.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page