HSE_REQ_GET_CACHE_INVALIDATION_CALLBACK

To invalidate entries placed in the kernel-mode response cache, first call this ServerSupportFunction to obtain the cache-invalidation callback function pointer. Then, invoke the cache-invalidation callback function pointer with the full URL of the cached response that you want to invalidate

The full URL of a cached response is the value returned by the UNICODE_CACHE_URL server variable of the request that cached the response.

BOOL ServerSupportFunction(
   HCONN ConnID,
   DWORD dwServerSupportFunction,
   LPVOID lpvBuffer,
   LPDWORD lpdwSize,
   LPDWORD lpdwDataType
);

Parameters

  • ConnID
    Specifies the connection identifier of the client to which the response data should be sent.

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

  • lpvBuffer
    Pointer to an PFN_HSE_CACHE_INVALIDATION_CALLBACK function prototype. The function prototype of the cache invalidation callback function is as follows

    typedef HRESULT (WINAPI * PFN_HSE_CACHE_INVALIDATION_CALLBACK)( 
            WCHAR *pszUrl);
    
  • lpdwSize
    This parameter is not used.

  • lpdwDataType
    This parameter is not used.

Return Values

The function returns TRUE upon successfully retrieving the header, or FALSE if there was an error.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in httpext.h.

See Also