NS_ShutdownXPCOM 编辑
Summary
The NS_ShutdownXPCOM
function terminates use of XPCOM in the calling process.
#include "nsXPCOM.h" nsresult NS_ShutdownXPCOM( nsIServiceManager* aSvcManager );
Parameters
- aSvcManager
- [in] The
nsIServiceManager
instance that was returned byNS_InitXPCOM2
(orNS_InitXPCOM3
) or null.
Return Values
The NS_ShutdownXPCOM function returns NS_OK
if successful. Otherwise, it returns an error code.
Remarks
You must call this method once you are finished using XPCOM.
Calling this method triggers the "xpcom-shutdown" notification to be dispatched to observers. Once this function has been called, the nsIComponentManager
and nsIServiceManager
will refuse to return object instances.
History
This function was finalized for Mozilla 0.9.6. See bug bug 99147 for details.
See Also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论