Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TerminateExtension() 和扩展析构函数之间有区别吗?显然两者都用于清理资源,但是应该在一个函数中而不是在另一个函数中进行哪种清理?
该TerminateExtension函数采用 DWORD dwFlags。如果这是 HSE_TERM_ADVISORY_UNLOAD,您可以返回 FALSE 或 TRUE 以允许或阻止卸载发生。
TerminateExtension
当然,你的类的析构函数中没有这样的选项。
http://msdn.microsoft.com/en-us/library/ms524470.aspx