Windows 7 Geolocation API simple console application sample

If you  running a Windows 7 machine (even without GPS) you can detect computer location, thanks to Windows 7 Sensors API. So you can create geolocation-enabled applications that can find your computer accurately.

C# (695.2 KB)
3.3 Star
6,206 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • 5000ms or more?
    2 Posts | Last post December 24, 2012
    • 5000ms for watcher.TryStart (...) works only if we have another program, which started driver-service and periodically call GetReport/Status.
      If you start 8 and run this sample it always says "Can't locate".
    • [url=]This[/url] works perfectly under 8.
  • Problem with sensor 3party driver
    2 Posts | Last post December 20, 2012
    • Now with all Windows 7 updates - this sample and others SDK samples don't work, because only not MS sensor-driver give me error 43 on 7 x86/x64:
      Windows has stopped this device because it has reported problems. (Code 43)
      Within Network, LLC
      I'll write to MS support for this problem (there isn't any MS sensor-driver for IP (not GPS) like for Win8) and I don't want use any 3rd party drivers with a lot of bugs.
      [b]What version of do you check? Or you used other internal MS sensor driver?[/b]
    • Т.е. оно не то, чтобы работало, а потом крышу сорвало в драйвера, оно сразу же после первого же старта программы - драйвер падает, под 64-ой более интереснее, там где-то после 3-5 раза падает, но все равно не работает и в начале, выдается report error, но это понятно, всякие левые драйвера юзать - на то оно и баги.
  • Porject not running!!
    3 Posts | Last post December 20, 2012
    • I have downloaded the code and ran the project according to the instructions provided. but, my sensors(i have installed geosense)...are not responding i think. How to solve my problem !!
    • Yeah, the same problem. We are waiting answer from author.
    • Кстати, Дима, можно на русском )