如何以编程方式确定我们当前运行的操作系统是否支持 Windows 错误报告?
我想确定我的程序当前运行的操作系统是否支持 Windows 错误报告。我想使用某种 API 来做到这一点。
Windows 错误报告是从 Vista 开始引入的,但我无法检查 if(osType == Vista)
因为,我的代码在 WES 7 和 WES 2009(Windows Embedded Standard)上运行。
有什么办法做到这一点吗?
非常感谢您的帮助和建议:)
I would like to determine if the OS that my program currently running on is Windows Error Reporting capable. I would like to do this using some kind of API.
Windows Error Reporting was introducing from Vista onwards, but I just can't check
if(osType == Vista)
because, my code runs on WES 7 and WES 2009 (Windows Embedded Standard).
Is there any way do this?
Thanks a lot for ur help and suggestions:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需尝试为“wer.dll”执行 LoadLibrary。如果成功,你就有了 WER。
Just attempt to do a LoadLibrary for "wer.dll". If it succeeds, you have WER.