An ISAPI extension calls the HSE_REQ_REPORT_UNHEALTHY support function to report to a worker process that the ISAPI extension is in an unhealthy state. The worker process responds by setting the ISAPI Unhealthy flag to true. If the health monitoring system is enabled when the World Wide Web Publishing Service (W3SVC) pings the worker process, then the worker process will send a message to the World Wide Web Publishing Service (W3SVC) requesting that the worker process be recycled.
Using the HSE_REQ_REPORT_UNHEALTHY support function to send a report to the worker process achieves a process recycling only when the health monitoring system is enabled for the worker process.
BOOL ServerSupportFunction( HCONN ConnID, DWORD dwServerSupportFunction, LPVOID psz_reason_unhealthy, LPDWORD lpdwSize, LPDWORD lpdwDataType );
bResult = pECB->ServerSupportFunction( pECB->ConnID, HSE_REQ_REPORT_UNHEALTHY, &psz_reason_unhealthy, NULL, NULL );
This support function will always return a TRUE (success) value.