This method opens a Positioning and Navigation device for communication.
HRESULT OpenDevice ( phPNDevice phPN, pPNDEVICE pDevice );
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. | 
| E_OUTOFMEMORY | The position and navigation API (PNAPI) has run out of memory. | 
| REGDB_E_READREGDB | A registry key could not be read. | 
| PNAPI_E_REGDBCLOSEKEY | A registry key could not be closed. | 
| PNAPI_E_LOADDLL | DLL could not be loaded. | 
| PNAPI_E_DEVICEUNAVAILABLE | The Positioning and Navigation device is unavailable; it could be unplugged or dead. | 
IPosNav::FindDevices, IPosNav::CloseDevice