function GetFilterVersion(var pVer: THTTP_FILTER_VERSION):BOOL;
var
ini:TIniFile;
begin
try
pVer.dwFilterVersion:=MakeLong(HSE_VERSION_MINOR, HSE_VERSION_MAJOR);
StrCopy(pVer.lpszFilterDesc,'Virtul Host By Icelake');
pVer.dwFlags:= SF_NOTIFY_ORDER_Low or SF_NOTIFY_MASK ;
result:=true;
except
Result := false;
end;
end;
function HttpFilterProc(var pfc: THTTP_FILTER_CONTEXT;Notificationtype: DWORD; pvNotification: Pointer): DWORD stdcall;
begin
case Notificationtype of
SF_NOTIFY_URL_MAP :result:=OnUrlMap(pfc,pvNotification);
end;
end;
function OnUrlMap(var pfc:THTTP_FILTER_CONTEXT;pvNotification: Pointer):Cardinal;
begin
...
result:=SF_STATUS_REQ_NEXT_NOTIFICATION;
end;