【发布时间】:2012-11-20 23:54:34
【问题描述】:
我在 windows phone 8 sdk 中看到了 winbase.h (WINAPI) 文件 (kernel32.dll),它具有以下功能:
GetSystemPowerStatus 将返回电池 状态(SYSTEM_POWER_STATUS)
。 问题是模拟器上的这个抛出和异常,没有在手机上测试(等待得到一个)
我用过
[DllImport("Kernel32")]
private static extern Boolean GetSystemPowerStatus( SystemPowerStatus sps );
代码符合但在运行时抛出异常。
任何想法都可以在手机上使用,或者 Windows phone 8 根本不支持?
【问题讨论】:
标签: windows-phone-8