This method finds all connected Positioning and Navigation devices on the system.
HRESULT FindDevices( ppPNDEVICE ppDevArray, DWORD *pdwNumDev );
One of the values described in the following table is returned.
Value |
Description |
S_OK | Success |
E_FAIL | An unspecified error occurred. |
E_INVALIDARG | One or more arguments are invalid. |
TYPE_E_DLLFUNCTIONNOTFOUND | The method was not defined in the specified DLL. |
REGDB_E_READREGDB | A registry key could not be read. |
PNAPI_E_INVALIDREGDBVALUE | There is an invalid value in the registry. |
PNAPI_E_REGDBCLOSEKEY | A registry key cannot be closed. |
PNAPI_E_MEMFREE | Memory or resource cannot be freed. |
PNAPI_E_BADOS | There is an invalid operating system version. |
E_OUTOFMEMORY | The position and navigation API (PNAPI) is out of memory. |
The IPosNav::FindDevices method returns data for Positioning and Navigation devices in an unknown status, but does not return data for non-operational devices.
IPosNav::DeleteDeviceList, IPosNav::OpenDevice