共用方式為


SF_REQ_DISABLE_NOTIFICATIONS

This support function can be used to disable specific notification types for your ISAPI filter, for the remaining lifetime of that request. If a particular notification event is disabled for your filter, then IIS will not call your filter when that notification event occurs.

New requests will generate the notifications for which your filter registered when it was loaded.

BOOL WINAPI * ServerSupportFunction(
      PHTTP_FILTER_CONTEXT pfc,
      enum SF_REQ_TYPE sfServerSupportFunction,
      PVOID pData,
      DWORD ul1,
      DWORD ul2
);

Parameters

  • pfc
    Points to the HTTP_FILTER_CONTEXT Structure that is associated with the current, active HTTP transaction.

  • sfServerSupportFunction
    The name of the Server Support function, which in this case must be set to SF_REQ_DISABLE_NOTIFICATIONS.

  • pData
    Unused in this support function.

  • ul1
    Contains flags, described in HTTP_FILTER_VERSION Structure, that indicate what notification types are to be disabled.

  • ul2
    Unused in this support function.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in httpfilt.h.