Error codes are Automation/ActiveX compatible 32-bit values, based on FACILITY_ITF (a.k.a. vbObjectError for VBA) with an offset of 400 hex, and are thus compatible with all ActiveX scripting languages, Visual Basic, Visual Basic for Applications (VBA), etc. it is imperative that drivers raise Automation errors with values equal to 80040400 hex and higher.
Drivers are free to choose their error codes and messages, except for one.
All drivers must implement the error "xxx is not implemented in this driver" with error code 80040400 hex. Drivers must report the specific property or method not implemented in the description part of the error object.