共用方式為


3.1.1.5.5 Returning Win32 Error Values

Whenever a server implementation returns an error code in the fault or reject PDU, the client implementation MUST use the following conversion table and return the corresponding Win32 error code to the client application. The term "not mapped" indicates that the error code value returned to the client application is the same as in the fault or reject PDU. Otherwise, the name of the value defined in [MS-ERREF] that is to be returned is shown. The Status Codes are defined in [C706] section N.2.

Status Code

Win32 Error Code

nca_s_comm_failure

RPC_S_COMM_FAILURE

nca_op_rng_error

RPC_S_PROCNUM_OUT_OF_RANGE

nca_unk_if

RPC_S_UNKNOWN_IF

nca_wrong_boot_time

Not mapped.

nca_s_you_crashed

RPC_S_CALL_FAILED

nca_proto_error

RPC_S_PROTOCOL_ERROR

nca_out_args_too_big

RPC_S_SERVER_OUT_OF_MEMORY

nca_server_too_busy

RPC_S_SERVER_TOO_BUSY

nca_unsupported_type

RPC_S_UNSUPPORTED_TYPE

nca_s_fault_int_div_by_zero

RPC_S_ZERO_DIVIDE

nca_s_fault_addr_error

RPC_S_ADDRESS_ERROR

nca_s_fault_fp_div_zero

RPC_S_FP_DIV_ZERO

nca_s_fault_fp_underflow

RPC_S_FP_UNDERFLOW

nca_s_fault_fp_overflow

RPC_S_FP_OVERFLOW

nca_s_fault_invalid_tag

RPC_S_INVALID_TAG

nca_s_fault_invalid_bound

RPC_S_INVALID_BOUND

nca_rpc_version_mismatch

RPC_S_PROTOCOL_ERROR

nca_unspec_reject

RPC_S_CALL_FAILED

nca_s_bad_actid

RPC_S_CALL_FAILED_DNE

nca_who_are_you_failed

RPC_S_CALL_FAILED

nca_manager_not_entered

RPC_S_CALL_FAILED_DNE

nca_s_fault_cancel

RPC_S_CALL_CANCELLED

nca_s_fault_ill_inst

RPC_S_ADDRESS_ERROR

nca_s_fault_fp_error

RPC_S_FP_OVERFLOW

nca_s_fault_int_overflow

RPC_S_ADDRESS_ERROR

nca_s_fault_unspec

RPC_S_CALL_FAILED

nca_s_fault_remote_comm_failure

Not mapped.

nca_s_fault_pipe_empty

RPC_X_PIPE_EMPTY

nca_s_fault_pipe_closed

RPC_X_PIPE_CLOSED

nca_s_fault_pipe_order

RPC_X_WRONG_PIPE_ORDER

nca_s_fault_pipe_discipline

RPC_X_PIPE_DISCIPLINE_ERROR

nca_s_fault_pipe_comm_error

RPC_S_COMM_FAILURE

nca_s_fault_pipe_memory

RPC_S_OUT_OF_MEMORY

nca_s_fault_context_mismatch

RPC_X_SS_CONTEXT_MISMATCH

nca_s_fault_remote_no_memory

RPC_S_SERVER_OUT_OF_MEMORY

nca_invalid_pres_context_id

RPC_S_PROTOCOL_ERROR

nca_unsupported_authn_level

RPC_S_UNSUPPORTED_AUTHN_LEVEL

nca_invalid_checksum

RPC_S_CALL_FAILED_DNE

nca_invalid_crc

RPC_S_CALL_FAILED_DNE

nca_s_fault_user_defined

Not mapped.

nca_s_fault_tx_open_failed

Not mapped.

nca_s_fault_codeset_conv_error

Not mapped.

nca_s_fault_object_not_found

Not mapped.

nca_s_fault_no_client_stub

Not mapped.