CHttpServer::TerminateExtension

BOOL TerminateExtension( DWORD dwFlags );

Return Value

If dwFlags is set to HSE_TERM_ADVISORY_UNLOAD, your override of this function can return TRUE to indicate that it can safely exit or FALSE to indicate that it is not ready to unload. If dwFlags is set to HSE_TERM_MUST_UNLOAD, the server is forcing the extension out of memory and the return value is ignored.

Parameters

dwFlags

A bitfield consisting of the following values:

  • HSE_TERM_ADVISORY_UNLOAD   The server wants to unload the extension. The extension can return TRUE if OK to unload or FALSE if the server should not unload the extension.

  • HSE_TERM_MUST_UNLOAD   The server is indicating the extension is about to be unloaded, the extension cannot refuse; the return value should be ignored.

Remarks

TerminateExtension gives you a safe way to clean up threads and complete other shutdown activities.

CHttpServer OverviewClass MembersHierarchy Chart