This function initializes the vehicle input/output (I/O) API for a process.
HRESULT VIOInitialize (LPVOID pvReserved);
One of the values described in the following table is returned.
Value |
Description |
S_OK | API was initialized successfully. |
CLASS_E_CLASSNOTAVAILABLE | Vehicle I/O device manager is not registered. |
E_ABORT | Startup of the API was aborted. |
VIOInitialize may be called multiple times by a process. However, if there are no corresponding calls to VIOUninitialize, resources in use by the process may not be freed when the process ends.