program Project1;
uses
Forms,
windows,
fFwall in 'fFwall.pas' {fMainform},
uSplash in 'uSplash.pas' {fSplashform},
fusbscan in 'fusbscan.pas' {usbform},
dbupdater in 'dbupdater.pas' {dbUpdateForm},
ParamUnit in 'ParamUnit.pas' {ParamForm};
var
Mutex : THandle;
{$R *.res}
begin
Mutex := CreateMutex(nil, True, 'myapp');
if (Mutex <> 0) and (GetLastError = 0) then
begin
Application.Initialize;
fSplashForm:=TfSplashForm.Create(Application);
fSplashForm.Show;
Application.ShowMainForm := False;
Application.CreateForm(TfMainform, fMainform);
Application.CreateForm(Tusbform, usbform);
Application.CreateForm(TdbUpdateForm, dbUpdateForm);
Application.CreateForm(TParamForm, ParamForm);
Application.Run;
if Mutex <> 0 then CloseHandle(Mutex);
end;
end.
|