TerminateFilter - tidy-up routine of an ISAPI filter.
#include "httpfilt.h" extern BOOL TerminateFilter ( dword dwFlags ) { /* do the job */ return TRUE; }
TerminateFilter tidies up persistent resources related to an ISAPI filter. It is called just before the filter is unloaded during shutdown of the web server.
On Tru64 UNIX (because of complications in that OS's handling of shared libraries) TerminateFilter must appear in the shared library which implements the filter - if the filter depends on further shared libraries, it can only use these to provide the tools needed by its interfaces; it cannot delegate, to them, provision of the ISAPI interface functions themselves.
The one parameter, dwFlags, indicates the context of the shutdown. The ISAPI specification does not currently define any values for this parameter.
Return TRUE on success; FALSE otherwise.
isapi(7),
TerminateExtension(3),
GetFilterVersion(3),
HttpFilterProc(3).
$ZEUSHOME/web/include/httpfilt.h $ZEUSHOME/web/include/wintypes.h $ZEUSHOME/webadmin/docroot/docs/modules/isapi/*.html
Given that power outages and similar unplanned termination of the web server cannot be relied on to allow for orderly shut-down, filter authors are advised not to rely on TerminateFilter being called.
Copyright (C) 2000-2001 Zeus Technology Limited. All rights reserved.