JCL Help:TJclAppInstances.CheckMultipleInstances

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Check the number of running instances.


Pascal

 public procedure CheckMultipleInstances(MaxInstances: Word; MaxSessionInstances: Word = 0; MaxUserInstances: Word = 0);


Parameters

Parameters Description
MaxInstances: Word Maximum count of instances


Description

CheckMultipleInstances determines whether fewer than MaxInstances application instances are running. If this is true, the process is registered as a running instance and a notification is sent to all other running instances, otherwise the method brings the first instance of the application to the foreground and then terminates itself (as such the routine never returns).


See Also

TJclAppInstances.CheckSingleInstance TJclAppInstances.CheckInstance TJclAppInstances.KillInstance


About

Donator

Petr Vones


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