[fpc-pascal] Windows find out if an application already is running

dmitry boyarintsev skalogryz.lists at gmail.com
Sun Mar 15 21:00:07 CET 2009

it's better to use named mutexes (supported on all Windows versions)
to find out if there's another instance of the app running.

do the following on application start:
- create a named mutex (constant name)
- try to lock the mutex (0 time waiting), if failed then there's
another instance already running.


More information about the fpc-pascal mailing list