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); }
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); }