2017-08-19 12:53:47 +02:00
|
|
|
program CookieVisitor;
|
|
|
|
|
|
2025-10-06 16:32:46 +02:00
|
|
|
|
2017-08-19 12:53:47 +02:00
|
|
|
|
|
|
|
|
uses
|
2025-05-20 19:35:57 +02:00
|
|
|
Forms,
|
|
|
|
|
Interfaces,
|
2017-08-19 12:53:47 +02:00
|
|
|
Windows,
|
|
|
|
|
uCEFApplication,
|
|
|
|
|
uCookieVisitor in 'uCookieVisitor.pas' {CookieVisitorFrm},
|
|
|
|
|
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
|
|
|
|
|
2025-05-20 19:35:57 +02:00
|
|
|
{$IFDEF WIN32}
|
2019-05-19 16:08:15 +02:00
|
|
|
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
|
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
|
|
|
{$ENDIF}
|
2017-08-19 12:53:47 +02:00
|
|
|
|
2024-05-02 12:31:19 +02:00
|
|
|
{$R *.res}
|
|
|
|
|
|
2017-08-19 12:53:47 +02:00
|
|
|
begin
|
2019-06-19 16:53:26 +02:00
|
|
|
CreateGlobalCEFApp;
|
2017-08-19 12:53:47 +02:00
|
|
|
|
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
|
|
|
begin
|
|
|
|
|
Application.Initialize;
|
|
|
|
|
Application.CreateForm(TCookieVisitorFrm, CookieVisitorFrm);
|
|
|
|
|
Application.CreateForm(TSimpleTextViewerFrm, SimpleTextViewerFrm);
|
|
|
|
|
Application.Run;
|
|
|
|
|
end;
|
|
|
|
|
|
2019-06-19 16:53:26 +02:00
|
|
|
DestroyGlobalCEFApp;
|
2017-08-19 12:53:47 +02:00
|
|
|
end.
|