Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
GPSOpenDevice
-
2015年11月18日
A version of this page is also available for
4/8/2010
This function creates a connection to the GPS Intermediate Driver.
Syntax
HANDLE GPSOpenDevice(
HANDLE hNewLocationData,
HANDLE hDeviceStateChange,
const WCHAR *szDeviceName,
DWORD dwFlags
);
Parameters
- hNewLocationData
Handle to a Windows Embedded CE event created using CreateEvent, or NULL. The GPS Intermediate Driver signals the passed event whenever it has new GPS location information.
- hDeviceStateChange
Handle to a Windows Embedded CE event created using CreateEvent, or NULL. The GPS Intermediate Driver signals the passed event whenever the state of the device changes.
- szDeviceName
Reserved. Must be NULL.
- dwFlags
Reserved. Must be 0. **
Return Value
If successful, returns a handle to the GPS Intermediate Driver.
If unsuccessful, returns NULL.
Requirements
Header
gpsapi.h
Library
Gpsapi.lib
Windows Embedded CE
Windows Embedded CE 6.0 and later
Windows Mobile
Windows Mobile Version 5.0 and later
See Also
Reference
GPS Intermediate Driver Functions
Concepts
GPS Intermediate Driver Power Management
Accessing Parsed GPS Data