开发者

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

开发者 https://www.devze.com 2022-12-19 21:23 出处:网络
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 (Po

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

精彩评论

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