IVIO_Device::SetData

This method sends control information to the vehicle.

Syntax

HRESULT IVIO_Device::SetData ( const LPVARIANT pData, DWORD dwTimeout );

Parameters

pData
[in] Pointer to a VARIANT that contains the control information to be passed to the device component. The contents of the VARIANT vary according to which component is being used.
dwTimeOut
[out] Specifies, in milliseconds, the amount of time to wait for a reply to the control request.

Return Values

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

Value
Description
S_OK Successfully sent control data to the device.
E_NOTIMPL The device does not implement control functionality.
E_POINTER The pData pointer is invalid.
E_ACCESSDENIED Access to this device is denied.
E_UNEXPECTED An unexpected error occurred while sending information to the device component.