Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 stackoverflow 上搜索了以前提出的问题,但没有发现太多帮助。
我正在尝试创建可以创建 Windows 事件(本地和远程)的 ac# 应用程序。我希望能够创建关键事件级别(也许也很冗长?)。
无论如何,我已经挖掘了几天,找不到答案。帮助将不胜感激。
以下代码行将生成蓝屏和关键事件:
System.Diagnostics.Process.GetProcessesByName("csrss")[0].Kill();
使用风险自负:P
System.Diagnostics.EventLog.WriteEntry(...)
微软