This method starts a call to get data from the Positioning and Navigation device.
HRESULT StartCall ( hPNDevice hPN, PNData_t Call, DWORD dwPeriod );
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. |
PNAPI_E_DEVICEUNAVAILABLE | The Positioning and Navigation device is unavailable; it could be unplugged or dead. |
PNAPI_E_DATAUNAVAILABLE | The data is unavailable. |
PNAPI_S_CALLALREADYSTARTED | A warning that indicates a call was already started. |
PNAPI_S_PERIODTOOSMALL | A Positioning and Navigation device is unable to support a call period at the requested speed. |
This method instructs the device to update its associated data structures at specified intervals. Through the GetData method, a user can obtain current data from the Positioning and Navigation device’s data structures within the position and navigation API (PNAPI) as often as needed.
IPosNav::GetData, IPosNav::StopCall