This function associates a vehicle input/output (I/O) mini-driver object’s class identifier (CLSID) with the vehicle I/O API device object.
HRESULT VIORegisterMinidriver( REFCLSID rclsidDevice, REFCLSID rclsidMinidriver, BOOL bRegister );
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. |
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.