The IsApplicationRunning function performs a background check on whether or not a specified program aAppName is currently running.
The function returns a boolean response of True if the program is running, and False if it is not.
Cleverly, it will detect if the program it is being called from is running.
Declaration: 'Function IsApplicationRunning(aAppName : string) : boolean
A simple example follows.