Status Reporting by the ActiveX Library
The ActiveX Library functions return negative values when they detect errors. This library uses a common set of error codes. You can use CA_GetAutomationErrorString to get the error message associated with each ActiveX Library error code.