Get G-sensor AutoRotation on\off status

  • 1676
  • 0

摘要:Get G-sensor AutoRotation on\off status

[DllImport("user32.dll")]
public static extern bool GetAutoRotationState(ref tagAR_STATE input);


    public enum tagAR_STATE : uint
    {
        AR_ENABLED = 0x0,
        AR_DISABLED = 0x1,
        AR_SUPPRESSED = 0x2,
        AR_REMOTESESSION = 0x4,
        AR_MULTIMON = 0x8,
        AR_NOSENSOR = 0x10,
        AR_NOT_SUPPORTED = 0x20,
        AR_DOCKED = 0x40,
        AR_LAPTOP = 0x80
    }