delphimvcframework/samples/70_isapi_sample/loggerproisapisample.dpr
Daniele Teti 55500acdf9 Squashed 'lib/loggerpro/' content from commit d1e0db6e
git-subtree-dir: lib/loggerpro
git-subtree-split: d1e0db6e93724e5fd825f0a8c02151d60450f98f
2023-02-27 12:26:25 +01:00

33 lines
634 B
ObjectPascal

library loggerproisapisample;
uses
LoggerPro.GlobalLogger,
Winapi.ActiveX,
System.Win.ComObj,
Web.WebBroker,
Web.Win.ISAPIApp,
Web.Win.ISAPIThreadPool,
Winapi.Windows,
WebModuleU in 'WebModuleU.pas' {WebModule1: TWebModule};
{$R *.res}
function TerminateExtension(dwFlags: DWORD): BOOL; stdcall;
begin
ReleaseGlobalLogger;
Result := Web.Win.ISAPIThreadPool.TerminateExtension(dwFlags);
end;
exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;
begin
CoInitFlags := COINIT_MULTITHREADED;
Application.Initialize;
Application.WebModuleClass := WebModuleClass;
Application.Run;
end.