示例#1
0
文件: Function.cs 项目: 01org/NMPRK
 protected override int InvokeInternal(int handle)
 {
     NMPRK.ipmi_acpi_power_state_t pwrState = new NMPRK.ipmi_acpi_power_state_t();
     pwrState.setSystemState = _input.SetSystemPowerState.Value;
     pwrState.setDeviceState = _input.SetDevicePowerState.Value;
     pwrState.systemState = _input.SystemPowerState.Value;
     pwrState.deviceState = _input.DevicePowerState.Value;
     int compCode = NMPRK.NMPRK_API.IPMI_SetAcpiPowerState(handle, ref pwrState);
     return (ReturnValue = compCode);
 }
示例#2
0
文件: Function.cs 项目: 01org/NMPRK
 protected override int InvokeInternal(int handle)
 {
     NMPRK.ipmi_acpi_power_state_t pwrState = new NMPRK.ipmi_acpi_power_state_t();
     int compCode = NMPRK.NMPRK_API.IPMI_GetAcpiPowerState(handle, ref pwrState);
     _output.Update(compCode, pwrState);
     return (ReturnValue = compCode);
 }