다음을 통해 공유


GPSOpenDevice (Windows Embedded CE 6.0)

1/6/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

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

See Also

Reference

GPS Intermediate Driver Functions

Concepts

GPS Intermediate Driver Power Management
Accessing Parsed GPS Data

Other Resources

CreateEvent
CreateFile
GetLastError