IVIO_Device::GetData

This method retrieves the current data from the device.

Syntax

HRESULT IVIO_Device::GetData ( LPVARIANT pData, DWORD dwTimeOut );

Parameters

pData
[in/out] Pointer to a VARIANT that contains the data from the device. When some vehicle I/O components implement the IVIO_Device interface, the VARIANT contains information to further define the requested data. For an example of this implementation, see the CLSID_VIO_FUEL_SYSTEM_STATUS component.
dwTimeOut
[in] Specifies, in milliseconds, the amount of time to wait for a reply to the data request.

Return Values

One of the values described in the following table is returned.

Value
Description
S_OK Successfully retrieved data from the device.
E_NOTIMPL This device does not implement data reads.
E_POINTER The pData pointer is invalid.
E_ACCESSDENIED Access to this device is denied.
E_UNEXPECTED An unexpected error occurred reading data from the device.

Remarks

For more information about the GetData method, see “CLSIDs for the Auto PC.”

See Also

CLSIDs for the Auto PC