Using this support function, you can set a special callback function that will be used for handling asynchronous I/O operations.
BOOL ServerSupportFunction(
HCONN ConnID,
DWORD HSE_REQ_IO_COMPLETION,
PFN_HSE_IO_COMPLETION pfnIOCompletion,
LPDWORD lpdwSize,
LPDWORD lpdwContext
);
Note that this support function does not actually perform any asynchronous I/O operations itself.
If the callback function is set to NULL, the callback function will never be called by IIS. If this support function is called multiple times, only the callback function specified by the last function call will be honored by IIS. All previous callback function settings will be lost.
If there is an error performing an asynchronous I/O operation, IIS will make exactly one call to the callback function that is specified by pfnIOCompletion in this support function. It is then your ISAPI extension's responsibility to do the necessary cleanup of any allocated resources associated with that operation.