MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Mobile GPS

Windows Mobile 6.5

This code sample is named MobileGPS. The solution (MobileGPS.sln) is made up of three interdependent projects.

Projects Description


This project implements the Windows Mobile device UI. Minor changes have been made to this project to use MobileGPSDemo. This project was generated using the Visual Studio Wizard.


This lib file implements the core logic required to communicate with the GPS intermediate driver. In addition, it provides an abstraction to ease the process of asynchronously handling the GPS Intermediate events.


This project uses MobileGPSLib to communicate with the GPS Intermediate driver.

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\Common\CPP\Win32\gps

    Microsoft Visual Studio launches and loads the solution.

  2. Ensure that the Intermediate Driver is set to emulate the GPS hardware.

  3. Build the solution (Ctrl+Shift+B).

  4. Deploy the solution (F5).

SDK: Windows Mobile Professional SDK and Windows Mobile Standard SDK

Development Environment: Visual Studio 2005 or 2008.

ActiveSync: Version 4.5.

MobileGPS demonstrates how to use native GPS Intermediate Driver Reference to asynchronously retrieve the location data and the GPS Intermediate Driver state.

The MobileGPSUI project has a linker input dependency on the gpsapi.lib library file.

It is left as an exercise for you to write the implementations for the two GPSSink "Set" functions, SetGPSPosition(GPS_POSITION gps_Position) and SetGPSDeviceInfo(GPS_DEVICE gps_Device).


Either the retail Windows Mobile device is GPS enabled, or the device emulator has been setup to simulate the GPS hardware.

Community Additions

© 2015 Microsoft