Windows 8和GNSS位置提供程序,读取状态(禁用/启用)

时间:2017-03-15 10:19:10

标签: gps windows-10 windows-8.1

是否有人知道如何检查(读取)是否启用或禁用了Windows 8 / 8.1 / 10 GNSS位置提供程序中的信息?

1 个答案:

答案 0 :(得分:1)

您可以在系统寄存器中读取和设置gnss状态。注册密钥

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\BcmGnssRadioManager

值名称:currRadioState,可用值数据:

  • DEVICE_RADIO_STATE_RADIO_ON = 0
  • DEVICE_RADIO_STATE_SW_RADIO_OFF = 1
  • DEVICE_RADIO_STATE_HW_RADIO_OFF = 2
  • DEVICE_RADIO_STATE_SW_HW_RADIO_OFF = 3
  • DEVICE_RADIO_STATE_HW_RADIO_ON_UNCONTROLLABLE = 4
  • DEVICE_RADIO_STATE_RADIO_INVALID = 5
  • DEVICE_RADIO_STATE_HW_RADIO_OFF_UNCONTROLLABLE = 6