VIORegisterDevice

This function enables support for a vehicle input/output (I/O) device by the vehicle I/O API.

Syntax

HRESULT VIORegisterDevice( REFCLSID rclsid, BOOL bRegister);

Parameters

rclsid
Class identifier of the vehicle I/O device.
bRegister
Boolean that is set to TRUE to register the device, or to FALSE otherwise.

Return Values

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

Value
Description
S_OK Object is registered or deregistered successfully.
S_FALSE Object is already registered or deregistered.
E_FAIL Failed to register or deregister object.
E_OUTOFMEMORY Application is out of memory.
E_UNEXPECTED An unexpected error occurred.

Remarks

This function informs the vehicle I/O API of which vehicle I/O CLSIDs are available in a specified vehicle.