捕获 API/工具的平台详细信息 - Windows 错误报告等效项
我正在开发一个用 C# 编写的基于 .NET 的桌面应用程序。 如果应用程序崩溃,我想捕获有关运行应用程序的计算机的某些详细信息:
- 操作系统详细信息:版本、服务包等
- .NET 详细信息:框架版本
- 安装的程序
- 崩溃时运行的进程。
- 有些东西我错过了,但应该在这里。
有没有一个工具或 API 集可以让我方便地获得这一切? 我想做的是调用 API(当崩溃发生时),捕获所有详细信息,并让用户能够将其报告给我。 类似于 Windows 错误报告服务。
PS:目前,我无法注册 Windows 错误报告服务< /a> 本身。
I am developing a .NET based desktop application written in C#. If and when the application crashes, I would like to capture certain details regarding the machine on which the application was running:
- Operating system details: version, service pack etc.
- .NET details: Framework version
- Installed programs
- Processes running at the time of the crash.
- Somethings which I'm missing, but should be here.
Is there a tool or an API set which lets me get all this conveniently? What I would like to do is to invoke the API (when the crash occurs), capture all the details, and let the user be able to report it back to me. Something like the windows error reporting service.
P.S: Right now, I can't sign up for the Windows Error Reporting service itself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
System.OperatingSystem osInfo=System.Environment.OSVersion;
链接
(通过 http://www .onedotnetway.com/get-a-list-of-installed-applications-using-linq-and-c/)
4)
System.OperatingSystem osInfo=System.Environment.OSVersion;
Link
(via http://www.onedotnetway.com/get-a-list-of-installed-applications-using-linq-and-c/)
4)