The TREQ-M4x and TREQ-VMx come with integrated GPS functionality. Typically this is accessed by opening COM6 at 9600 8N1 and parsing the
NMEA strings that are received.
It is possible to use Microsoft's GPS Intermediate driver to do the parsing for you, then calling
GPSGetPosition and related APIs.
By default this driver is present on your TREQ-M4x or TREQ-VMx, but disabled. To enable the driver several registry keys should be modified. Download
this registry file. Place it on a USB flash drive and put the flash drive in your TREQ unit. Run \HardDisk\Bin\RegEditCE.exe and select File->Import and import the registry file. You should then reboot your TREQ. After rebooting, you will no longer be able to access COM6. However you can call GPSGetPosition instead to read GPS location.