I am trying to retrieve my windows laptop geo location from a C++ application. The below link contain a beautiful example written in C++, but this only works if GPS sensor is present in laptop, and this COM API got deprecated and windows may stop the service itself anytime sooner.
https://www.winwaed.com/blog/2018/12/07/using-the-windows-7-location-api/
As per the windows, the most recent recommended way of getting GeoLocaiton is documented in below URL, but this needs a C# application to use the System.Device.Location namespace, whereas I need a C++ solution.
https://learn.microsoft.com/en-us/windows/desktop/locationapi/windows-location-api-portal
System.Device.Location namespace uses wifi Access point as well to retrieve the location, therefore GPS chip dependency is no longer present.
Could anyone recommend on how can I use this System.Device.Location namespace in C++ application?
~Ashish