Partager via


IOCTL_GPS_DRIVER_GET_LOCATION_V1 (Windows Embedded CE 6.0)

1/6/2010

The GPS Intermediate Driver uses this IOCTL when the GPS hardware is configured using an input source of type Poll. For more information, see GPS Intermediate Driver Poll Registry Settings.

Parameters

The lpOutBuffer parameter to DeviceIOControl points to memory that must be set to a GPS_POSITION structure that contains the most recent location information obtained by the GPS hardware.

If the GPS hardware has no data, but the hardware is still functioning, the dwValidFields member of the GPS_POSITION structure should be set to 0.

Return Values

TRUE if the GPS hardware is functioning, even if there was no data to return.

FALSE if there has been a GPS hardware error (for example, if the GPS hardware has been unplugged).

Requirements

Header gpsdev.h
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

GPS Intermediate Driver IOCTLs
GPS_POSITION

Concepts

Implementing GPS Intermediate Driver Hardware IOCTLs

Other Resources

DeviceIoControl
ReadFile