CAtlModule::AddTermFunc

Adds a new function to be called when the module terminates.

HRESULT AddTermFunc(
   _ATL_TERMFUNC* pFunc,
   DWORD_PTR dw 
) throw( );

Parameters

  • pFunc
    Pointer to the function to add.

  • dw
    User-defined data, passed to the function.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Requirements

Header: atlbase.h

See Also

Reference

CAtlModule Class

CAtlModule::Term

Other Resources

CAtlModule Members