【问题标题】:How get system start up event in windows service c#?如何在 Windows 服务 C# 中获取系统启动事件?
【发布时间】:2012-08-11 12:14:34
【问题描述】:

我正在编写一个 Windows 服务。我想做一些关于系统启动、系统锁定、关机的功能。如何在windows服务中获取启动、锁定和关闭事件?

【问题讨论】:

标签: c# .net service windows-services systemevent


【解决方案1】:

尝试使用 Microsoft.Win32.SystemEvents 类。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多