gpt4 book ai didi

c++ - 如何使用 GetSystemPowerStatusEx2 API 在 Wince 中表示电池温度值?

转载 作者:行者123 更新时间:2023-11-27 23:21:12 25 4
gpt4 key购买 nike

我只想确认电池温度数据。

我正在使用 GetSystemPowerStatusEx2 API 获取使用 C++ 的 Windows CE 设备的电池温度..

我正在使用 "SYSTEM_POWER_STATUS_EX2" 类型的变量 say "psse"

成功,电池温度返回值如下:-

psse.BatteryTemperature = 29//dword类型

我的疑问是实际的电池温度表示是多少?

是 2.9 摄氏度还是 29 摄氏度,为什么?

请回复。提前致谢。

最佳答案

根据 the documentation on MSDN

Battery temperature in degrees Celsius. This member can have a value in the range of –3,276.8 to 3,276.7; the increments are 0.1 degrees Celsius.

所以值 29 表示 2.9 摄氏度。

关于c++ - 如何使用 GetSystemPowerStatusEx2 API 在 Wince 中表示电池温度值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12900408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com