E_CLR_ALREADY_STARTED 的值是什么/在哪里?
ICLRRuntimeHost::SetHostControl 声明的文档它可以返回 E_CLR_ALREADY_STARTED。我一直无法找到这个值的定义。理想情况下,我想知道要包含的适当标头是什么(它似乎不在 corerror.h 中),但如果有人也可以为我提供规范值,我可以接受。
谢谢
The docs for ICLRRuntimeHost::SetHostControl claim that it can return E_CLR_ALREADY_STARTED. I have been unable to find a definition for this value. Ideally, I'd like to know what the appropriate header to include is (it does not appear to be in corerror.h) but if someone can provide me with the canonical value too I can live with that.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我似乎也找不到它,而且我通常很擅长查找丢失或拼写错误的常量。您可以尝试在初始化 CLR 后调用该方法,如果它实际上返回了记录中要返回的 HRESULT,您可以跟踪它。但这绝对看起来像是一个文档错误。
I can't seem to find it either and I'm usually pretty good at finding missing or misspelled constants. You could try calling the method after initializing the CLR and if it does in fact return the HRESULT that it's documented to return, you could just trace it. But it definitely seems like a documentation bug.