Windows mobile 如何在windows mobile中为GPS编程设置com端口
在windows mobile中,GPS com端口设置在开始\设置\系统\外部GPS中完成。 但是,我想以编程方式进行上述更改。 为此,我比较了设置前后手机的注册表设置,现在以编程方式进行设置:Windows mobile 如何在windows mobile中为GPS编程设置com端口,windows-mobile,gps,registry,windows-mobile-gps,Windows Mobile,Gps,Registry,Windows Mobile Gps,在windows mobile中,GPS com端口设置在开始\设置\系统\外部GPS中完成。 但是,我想以编程方式进行上述更改。 为此,我比较了设置前后手机的注册表设置,现在以编程方式进行设置: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver] "IsEnabled"=dword:00000001 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Inte
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver]
"IsEnabled"=dword:00000001
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers]
"CurrentDriver"="Control Panel Configured Device"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\Control Panel Configured Device]
"Baud"=dword:0000e100
"CommPort"="COM8:"
"InterfaceType"="COMM"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer]
"DriverInterface"="COM0:"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer\ActiveDevice]
"Index"=dword:00000000
"Prefix"="COM"
"Context"=dword:12344160
"Flags"=dword:00000002
"Keep"=dword:00000001
"Dll"="GPSID.dll"
但即使在完成这些注册表设置后,GPS端口设置也不会显示在“开始\设置\系统\外部GPS”中,但我仍然可以在注册表中看到它们
如何以编程方式更改“启动\设置\系统\外部GPS”设置?更改注册表设置后,您必须在中间驱动程序上调用
IOCTL\u SERVICE\u REFRESH
。
此外,您可能会发现注册表值本身的MSDN文档非常有用:
-PaulH我做了这个更改,但我仍然可以看到除了以下更改以外的所有更改:
[HKEY\U LOCAL\U MACHINE\System\CurrentControlSet\GPS中间驱动程序\Drivers\Control Panel Configured Device]“Baud”=dword:0000e100“CommPort”=“COM8:“InterfaceType”=“COMM”
还有什么可能出错?没关系,我发现了问题,必须在HKEY\U LOCAL\U MACHINE\System\CurrentControlSet\GPS中间驱动程序\Drivers上设置CurrentDriver