The TerminateExtension function unloads the ISAPI DLL. This optional entry point function is called by IIS when IIS is ready to unload the DLL from its process.
BOOL WINAPI TerminateExtension(
DWORD dwFlags
);
Value | Meaning |
HSE_TERM_MUST_UNLOAD | Server indicates the extension is about to be unloaded. The extension cannot refuse. |
Because TerminateExtension is never called by IIS until all outstanding requests have been processed, it is not necessary to include code to wait for outstanding requests within TerminateExtension.