uses Forms, Windows, Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
var aHandle: THandle; begin aHandle := CreateMutex(nil, TRUE, ' '); if (aHandle<>0) and (GetLastError=ERROR_ALREADY_EXISTS)then begin CloseHandle(aHandle); Halt; end; Application.Initialize; Application.CreateForm(Tform1,form1); Application.Run; end.