Get the number of running instances of a Windows application.
int GetNumberOfRunningInstances ()
|int||the number of running instances|
This method can be used when your application is a standard Windows application such as a desktop application.
When this method is called, it identifies the name of the current process, looks for all running processes with the same name, and returns their count.