IDL provides the following predefined data type to hold RPC communications status information:
error_status_t
The values that can be contained in the error_status_t data type are compatible with the unsigned long and unsigned32 IDL data types. These data types are used for status values in the DCE.
The error_status_t data type contains an additional semantic to indicate that this particular unsigned long contains a DCE format error status value. This additional semantic enables the IDL compiler to perform any necessary translation when moving the status value between systems with differing hardware architectures and software operating systems. If you are using status codes that are not in the DCE error status format or if you do not require such conversion, use an unsigned long instead of error_status_t.