TerminateExtension

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 

);

 

Parameters
dwFlags
A DWORD that specifies whether IIS should shut down the extension.
Value Meaning
HSE_TERM_MUST_UNLOAD Server indicates the extension is about to be unloaded. The extension cannot refuse.

Remarks

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.