最新回复
原来C#也是一样一样的呀。
public class SYSTEM_POWER_STATUS_EX2
{
// Fields
public byte ACLineStatus;
public byte BackupBatteryFlag;
public uint BackupBatteryFullLifeTime;
public byte BackupBatteryLifePercent;
public uint BackupBatteryLifeTime;
public uint BackupBatteryVoltage;
public uint BatteryAverageCurrent;
public uint BatteryAverageInterval;
public byte BatteryChemistry;
public uint BatteryCurrent;
public byte BatteryFlag;
public uint BatteryFullLifeTime;
public byte BatteryLifePercent;
public uint BatteryLifeTime;
public uint BatterymAHourConsumed;
public uint BatteryTemperature;
public uint BatteryVoltage;
public byte Reserved1;
public byte Reserved2;
public byte Reserved3;
// Methods
public SYSTEM_POWER_STATUS_EX2()
{
}
}
[DllImport( "coredll ")]
private static extern uint GetSystemPowerStatusEx2(SYSTEM_POWER_STATUS_EX2 lpSystemPowerStatus, uint dwLen, bool fUpdate);
SYSTEM_POWER_STATUS_EX2 status2 = new SYSTEM_POWER_STATUS_EX2(); 复制代码
详情
回复
发表于 2008-7-3 09:23
| |
|
|
此帖出自嵌入式系统论坛
| ||
|
||
| |
|
|
| |
|
|
此帖出自嵌入式系统论坛
| ||
|
||
EEWorld Datasheet 技术支持