开发者

How to detect when the laptop is running on batteries in .NET?

How to detect when the laptop is running on batteries (or AC开发者_开发知识库) in .NET?


How to detect when laptop power cable has been disconnected?


For Vista and up, you can use WindowsAPICodecPack (PowerManager.PowerSourceChanged)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜