TerminateExtension

The TerminateExtension function unloads the ISAPI DLL. This is the standard entry point called by IIS as the last function if it is exposed by the extension.

BOOL WINAPI TerminateExtension(
  DWORD dwFlags  
);
 

Parameters

dwFlags
A DWORD that specifies whether IIS should shut down the extension.
Value Meaning
HSE_TERM_ADVISORY_UNLOAD IIS is prepared to close the extension; the extension returns TRUE if ready to close, FALSE if not.
HSE_TERM_MUST_UNLOAD Server indicates the extension is about to be closed; the extension cannot refuse.