_GetMappedErr

_GetMappedErr(
 unsigned int Function,
 unsigned int ExtErr
 )
 

This service maps the extended error code for a given int 21h function on to the allowed set of error codes for that particular function and returns the error that DOS would have returned on the int 21h API. DOS returns a restricted set of errors on the int 21h API and stores the detailed error information in its extended error variables.

Function
Supplies the int 21h function number that would have been passed in AH on an int 21h call.
ExtErr
Supplies the extended error code.