NS_GetServiceManager 编辑
Summary
The NS_GetServiceManager
function returns a reference to the XPCOM service manager.
#include "nsXPCOM.h" #include "nsIServiceManager.h" nsresult NS_GetServiceManager( nsIServiceManager** aResult );
Parameters
- aResult
- [out] A reference to the XPCOM service manager.
Return Values
The NS_GetServiceManager
function returns NS_OK
if successful. Otherwise, it returns an error code.
Remarks
The object returned is a singleton that is valid until NS_ShutdownXPCOM
is called. The interface pointer should be Release
'd when it is no longer needed.
History
This function was finalized for Mozilla 0.9.6. See bug 99147 for details.
See Also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论