Export (0) Print
Expand All

About the Samples

The Windows SDK includes useful samples and tools to help you understand and use the Location API.

C++ Samples

The Windows SDK includes the following Location API C++ samples. You can find the C++ Location API samples in the folder named Samples\winui\Location, where you installed the Windows SDK. For example, if you installed the Windows SDK on drive C, you would find the samples in the following folder: C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\Location.

Sample nameDescription
LocationEventsShows how to use the Location API in an asynchronous manner. This sample requires Visual Studio.
SimpleLocationShows how to use the Location API in a synchronous manner. This sample requires Visual Studio.
SetLocationShows how to use the Location API to set the default location. This sample requires Visual Studio.

 

For more information, see the file named ReadMe.txt that is included with the sample.

Gadget Sample

The Windows SDK includes a Desktop gadget sample that demonstrates how to use the Location API in script with HTML. You can find the gadget sample in the folder named Samples\winui\Sidebar\LocateMe.gadget. For example, if you installed the Windows SDK on drive C, you would find the samples in the following folder: C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\Sidebar\LocateMe.gadget.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft