TinfMutex v1.0
Released 14. april 1999 by Informatics


General information
This Delphi component is freeware, but please do not modify the source; contact us so we can make the changes instead.
Checks if an instance of the program is allready running

Usage :
1. Run the function AlreadyRunning to check if your program is running in another instance. It actually checks if the mutex name (property MutexName) already exists. Put it in an startup event.
2. To free/unregister the mutex(name) call the remove mutex. Remember if you change the MutexName-property after you have run the AlreadyRunning function, it won't work (it doesen't do anything) Simple rule : don't change the MutexName property runtime if you don't know what you're doing (and my guess is you don't).
3. Designtime you're free to change the Mutexname to something more relevant than the default. 
4. You should call the RemoveMutex function before closing you application
5. The funtions have a lot of other usage possibilities than checking if an application is runing or not. 
Ex. check if your app is already running :

if InfMutex1.AlreadyRunning(true) then
begin
   showmessage('I am running already');
   Application.Terminate;
end;

File description
Unit IinfMutex.pas
Author Informatics, Morten Høyseth
Construction date 14.04.99
Methods
Use AlreadyRunning to check if the Mutex is already registred (). If it is, the function returns true, else false. With the DoCreateMutex-parameter you decide whether to create a new mutex or not, if it is not already registred. 
Use RemoveMutex to unregister the mutex.


Properties
MutexName String. Unique name of the Mutex you check if is registred.

Version
v1.0 14.04.99 - First release

Fi
le structure
1. File information part 
2. Interface
a. uses declarations
b. const declarations
c. type declarations
d. var declarations
3. Implementation
a. Manually gen. procedure & function implementations (level 1.0)
b. Automatically gen. procedure & function implementations (level 2.0)
c. Registration, initialization & finalization (level 3.0)

Contact address
Informatics
Herløgsv.9
1430 ÅS
NORWAY

e-mail :
morten@informatics.no morten@informatics.no or support@informatics.no 
www :
http://www.informatics.no 

Copyrights
© copyright 1999 Informatics