2019年6月12日 星期三

[#]study get battery status

要 reference Windows.Devices.Power 就失敗了.






有用的文章:
Calling Windows 10 APIs From a Desktop Application
https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/#0VBvIDw8jFwbXajH.97

Battery and charging
https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/battery-and-charging

初探C#操作WMI類別及其應用
http://einboch.pixnet.net/blog/post/266960399-%E5%88%9D%E6%8E%A2c%23%E6%93%8D%E4%BD%9Cwmi%E9%A1%9E%E5%88%A5%E5%8F%8A%E5%85%B6%E6%87%89%E7%94%A8

Battery Level using System Management in C#https://stackoverflow.com/questions/18124436/battery-level-using-system-management-in-c-sharp

不錯的範例
https://gist.github.com/ahawker/9715872

沒有留言:

張貼留言