Error code propagation

There is no dedicated list of adapter specific return codes. Rather, the HRESULT return code from the component is returned.

These codes can be especially useful at map run time if components specify their own particular error codes and you use the LASTERRORCODE function to control future map execution based on your return codes.

The error (or warning) code is also sent back to the map as part of the status message in hexadecimal format (for example, M4COM_DispatchInvoke failed: 0x80020004). One error code that the adapter itself can return is E_FAIL. This indicates an adapter initialization error.