2020-01-13 15:39:44 +01:00
|
|
|
program OAuth2Tester;
|
|
|
|
|
|
|
|
{$MODE Delphi}
|
|
|
|
|
2023-11-27 18:21:07 +01:00
|
|
|
{$I ..\..\..\source\cef.inc}
|
2020-01-13 15:39:44 +01:00
|
|
|
|
|
|
|
uses
|
|
|
|
{$IFDEF DELPHI16_UP}
|
|
|
|
WinApi.Windows,
|
|
|
|
Vcl.Forms,
|
|
|
|
{$ELSE}
|
|
|
|
Forms,
|
|
|
|
LCLIntf, LCLType, LMessages, Interfaces,
|
|
|
|
{$ENDIF }
|
|
|
|
uCEFApplication,
|
|
|
|
uCEFConstants,
|
|
|
|
uOAuth2TesterFrm in 'uOAuth2TesterFrm.pas' {OAuth2TesterFrm};
|
|
|
|
|
|
|
|
{.$R *.res}
|
|
|
|
|
|
|
|
begin
|
2023-12-23 18:58:40 +01:00
|
|
|
GlobalCEFApp := TCefApplication.Create;
|
|
|
|
GlobalCEFApp.SetCurrentDir := True;
|
2020-01-13 15:39:44 +01:00
|
|
|
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
|
|
begin
|
|
|
|
Application.Initialize;
|
|
|
|
Application.MainFormOnTaskbar := True;
|
|
|
|
Application.CreateForm(TOAuth2TesterFrm, OAuth2TesterFrm);
|
|
|
|
Application.Run;
|
|
|
|
end;
|
|
|
|
|
|
|
|
DestroyGlobalCEFApp;
|
|
|
|
end.
|