This method stops a call to the Positioning and Navigation device.
HRESULT StopCall ( hPNDevice hPN, PNData_t Call );
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_NOCALLSTARTED | No call has been started yet. |
If a call has been started using IPosNav::StartCall with the dwPeriod set to 0, then the call does not need to be stopped with IPosNav::StopCall. A value of 0 indicates the call is made once, and then stopped.