ULONG
RtlNtStatusToDosErrorNoTeb(
  IN  NTSTATUS Status
  );

Routine Description:

    This routine converts an NT status code to its DOS/OS 2 equivalent
    and returns the translated value.

Arguments:

    Status - Supplies the status value to convert.

Return Value:

    The matching DOS/OS 2 error code.