Mobile 重启设备 这里有三种方式可以重启Mobile 设备

 

Mobile 重启设备  SetSystemPowerState 

[DllImport("Coredll.dll")]
public static extern int SetSystemPowerState(string psState, SystemPowerStateFlags StateFlags, uint Options);

public const uint POWER_FORCE = 0x00001000;
public enum SystemPowerStateFlags : uint
{
    POWER_STATE_ON          
= 0x00010000,  // on state
    POWER_STATE_OFF         = 0x00020000,  // no power, full off
    POWER_STATE_CRITICAL    = 0x00040000,  // critical off
    POWER_STATE_BOOT        = 0x00080000,  // boot state
    POWER_STATE_IDLE        = 0x00100000,  // idle state
    POWER_STATE_SUSPEND     = 0x00200000,  // suspend state
    POWER_STATE_UNATTENDED  = 0x00400000,  // Unattended state.
    POWER_STATE_RESET       = 0x00800000,  // reset state
    POWER_STATE_USERIDLE    = 0x01000000,  // user idle state
    POWER_STATE_BACKLIGHTON = 0x02000000,  // device scree backlight on
    POWER_STATE_PASSWORD    = 0x10000000   // This state is password protected.
} 

相关文章:

  • 2021-10-03
  • 2022-02-16
  • 2021-06-19
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-03-09
猜你喜欢
  • 2021-10-09
  • 2021-10-16
  • 2022-12-23
  • 2022-03-01
  • 2021-09-16
  • 2021-10-10
相关资源
相似解决方案