Share via


HSE_REQ_SEND_CUSTOM_ERROR

An ISAPI extension calls the HSE_REQ_SEND_CUSTOM_ERROR support function to send a custom error to the client. The error number and description are sent as well as an optional sub-error number. The custom error information is supplied in an HSE_CUSTOM_ERROR_INFO structure.

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_SEND_CUSTOM_ERROR.

  • lpvBuffer
    Pointer to a structure of type HSE_CUSTOM_ERROR_INFO.

  • lpdwSize
    NULL. Not used.

  • lpdwDataType
    NULL. Not used.

Example Code

bResult = pECB->ServerSupportFunction( 
  pECB->ConnID, 
  HSE_REQ_SEND_CUSTOM_ERROR, 
  &pHseCustomErrorInfo, 
  NULL, 
  NULL 
  ); 

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in httpext.h.

See Also