This function enables support for a vehicle input/output (I/O) device by the vehicle I/O API.
HRESULT VIORegisterDevice( REFCLSID rclsid, BOOL bRegister);
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. |
This function informs the vehicle I/O API of which vehicle I/O CLSIDs are available in a specified vehicle.