简体   繁体   English

Win32 Native(api或者其他)读取当前机器的Geolocation?

[英]Win32 Native(api or anything) to read current machine Geolocation?

Did anyone manage to read a Windows machine's longtitude & latitude (GPS Position), without using .Net 4 libraries (Windows.Devices namespace) nor Javascript or other webbish code ? 有没有人设法读取Windows机器的经度和纬度(GPS位置),而不使用.Net 4库(Windows.Devices命名空间),也不使用Javascript或其他webbish代码?

There must be a native way. 必须有一种本土方式。 The location sensor is in the Control Panel, 位置传感器位于控制面板中,

I could not find any API nor valid documentation which allows me to read off of it, I would like to avoid having Net framework 4.0 as a dependency and invoking a browser process in the background, just to read current user's location via javascript is a huge overhead in my opinion 我找不到任何API也没有有效的文档允许我阅读它,我想避免将Net framework 4.0作为依赖项并在后台调用浏览器进程,只是通过javascript读取当前用户的位置是一个巨大的在我看来是开销

The native Win32 API is the Sensor API . 本机Win32 API是Sensor API The Sensor API Programming Guide has some fairly detailed C++ examples. 传感器API编程指南有一些相当详细的C ++示例。

Good article: Using Windows 7 Location API 好文章: 使用Windows 7 Location API

(Google the above terms if the links ever break). (如果链接破坏,谷歌上述条款)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM