System Delphi

procedure TForm1.FormCreate(Sender: TObject);
begin
CreateMutex(nil,FALSE,'PROGRAMADI');
if GetLastError = ERROR ALREADY EXISTS then
begin
ShowMessage('Program şu an çalışmakta.');
Halt(0);
end;
end;
attila_t2000@yahoo.co.uk