Similar to this question, but in Delphi:
How do I find out if a process is already running using c#?
I have an updater program, I want it to check the progra
I' m typing these codes initialization part of main unit.
initialization mHandle := CreateMutex(nil, True, 'myApp.ts'); if GetLastError = ERROR_ALREADY_EXISTS then begin MessageDlg('Program already running!', mtError, [mbOK], 0); Halt; end;