Using this support function, your ISAPI extension can request that IIS attempt to read from the client asynchronously. In order for this function to work properly, however, you must have specified a special callback function, which IIS will call when the asynchronous read has completed. This callback function can be set using the ServerSupportFunction request HSE_REQ_IO_COMPLETION.
BOOL ServerSupportFunction(
HCONN ConnID,
DWORD HSE_REQ_ASYNC_READ_CLIENT,
LPVOID lpvBuffer,
LPDWORD lpdwSize,
LPDWORD lpdwDataType
);
If your extension has not set a callback function before calling the ServerSupportFunction HSE_REQ_ASYNC_READ_CLIENT request, then your extension will receive an error from IIS.