public bool SetPowerState(PowerState state, bool isForce = false) { if (this.ConnectionStatus != ConnectionStatus.Connected) { return(false); } PS3TMAPI.SNRESULT result = PS3TMAPI.SNRESULT.SN_E_COMMS_ERR; switch (state) { case PowerState.Off: result = PS3TMAPI.PowerOff(this.TargetIndex, isForce); break; case PowerState.On: result = PS3TMAPI.PowerOn(this.TargetIndex); break; } return(PS3TMAPI.SUCCEEDED(result)); }
/// <summary>Power off selected target.</summary> public void PowerOff(bool Force) { PS3TMAPI.PowerOff(Target, Force); }
public void Shutdown(bool Force) { PS3TMAPI.PowerOff(Target, Force); }
public static void TurnOff() { PS3TMAPI.PowerOff(0, true); }
public void PowerOff(bool Force) { PS3TMAPI.PowerOff(0, false); }
/// <summary> /// Shuts down the PS3, write true in the parameter if you want to force the PS3 to shutdown, if not, write 'false'. /// </summary> /// <param name="Force_PS3_To_Shutdown"></param> public static void PowerOffTarget(bool Force_PS3_To_Shutdown) { PS3TMAPI.PowerOff(0, Force_PS3_To_Shutdown); }