VIORegisterMinidriver

This function associates a vehicle input/output (I/O) mini-driver object’s class identifier (CLSID) with the vehicle I/O API device object.

Syntax

HRESULT VIORegisterMinidriver( REFCLSID rclsidDevice, REFCLSID rclsidMinidriver, BOOL bRegister );

Parameters

rclsidDevice
CLSID of the vehicle I/O API device object that the mini-driver is associated with.
rclsidMinidriver
CLSID of the vehicle I/O mini-driver object.
bRegister
Boolean that is set to TRUE to register the mini-driver, or to FALSE to deregister it.

Return Values

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

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

Remarks

The vehicle I/O API device objects use mini-driver objects to convert vendor-specific data retrieved from a vehicle I/O device to the format specified for the API device object. This function is used to determine which mini-driver object a specified API device object uses for the conversion.