RPC Return Values

Header: winerror.h

This table lists only the most common values that can be returned by all RPC functions. See the individual method descriptions for lists of the specific return codes each can return.

SymbolicCodeDescription
EPT_S_CANT_CREATEAn entry into the endpoint mapper database cannot be created.
EPT_S_CANT_PERFORM_OPGeneral failure when trying to perform an operation on the endpoint mapper database.
EPT_S_INVALID_ENTRYThe specified endpoint mapper database entry is invalid.
EPT_S_NOT_REGISTEREDThere are no more endpoints available from the endpoint-map database.
RPC_S_ACCESS_DENIEDAccess for making the remote procedure call was denied.
RPC_S_ADDRESS_ERRORAn addressing error has occurred on the server.
RPC_S_ALREADY_LISTENINGThe server is already listening.
RPC_S_ALREADY_REGISTEREDThe object UUID has already been registered.
RPC_S_ASYNC_CALL_PENDINGThe asynchronous remote procedure call has not yet completed.
RPC_S_BINDING_HAS_NO_AUTHThe binding does not contain any authentication information.
RPC_S_BINDING_INCOMPLETENot all required elements from the binding handle were supplied.
RPC_S_BUFFER_TOO_SMALLThe buffer given to RPC by the caller is too small.
RPC_S_CALL_CANCELLEDThe remote procedure call was canceled, or if a call time out was specified, the call timed out.
RPC_S_CALL_FAILEDThe remote procedure call failed. Implies the server was reachable at a certain point in time, and execution of the remote procedure call on the server may have started.
RPC_S_CALL_FAILED_DNEThe remote procedure call failed, and execution on the server did not start. Implies the server was reachable at a certain point in time.
RPC_S_CALL_IN_PROGRESSA remote procedure call is still in progress.
RPC_S_CANNOT_SUPPORTThe requested operation is not supported.
RPC_S_CANT_CREATE_ENDPOINTThe endpoint cannot be created.
RPC_S_COMM_FAILUREUnable to communicate with the server.
RPC_S_DUPLICATE_ENDPOINTThe endpoint is a duplicate.
RPC_S_ENTRY_ALREADY_EXISTSThe entry already exists.
RPC_S_ENTRY_NOT_FOUNDThe entry is not found.
RPC_S_FP_DIV_ZEROA floating-point operation at the server has caused a divide by zero.
RPC_S_FP_OVERFLOWA floating-point overflow has occurred at the server.
RPC_S_FP_UNDERFLOWA floating-point underflow has occurred at the server.
RPC_S_GROUP_MEMBER_NOT_FOUNDThe group member has not been found.
RPC_S_INCOMPLETE_NAMEThe entry name is incomplete.
RPC_S_INTERFACE_NOT_FOUNDThe interface has not been found.
RPC_S_INTERNAL_ERRORAn internal error has occurred in a remote procedure call.
RPC_S_INVALID_ARGThe specified argument is not valid.
RPC_S_INVALID_AUTH_IDENTITYThe specified authentication identity could not be used. For example an LRPC client stopped functioning in the middle of an RPC and the server could not impersonate it. Or, credentials for a client could not be acquired by the security provider.
RPC_S_INVALID_BINDINGThe binding handle is invalid.
RPC_S_INVALID_BOUNDThe array bounds are invalid.
RPC_S_INVALID_ENDPOINT_FORMATThe endpoint format is invalid.
RPC_S_INVALID_LEVELThe version, level, or flags parameter is invalid.
RPC_S_INVALID_NAF_IDThe network-address family is invalid.
RPC_S_INVALID_NAME_SYNTAXThe name syntax is invalid.
RPC_S_INVALID_NET_ADDRThe network address is invalid.
RPC_S_INVALID_NETWORK_OPTIONSThe network options are invalid.
RPC_S_INVALID_OBJECTThe object is invalid.
RPC_S_INVALID_RPC_PROTSEQThe RPC protocol sequence is invalid.
RPC_S_INVALID_SECURITY_DESCThe security descriptor is not in the valid format.
RPC_S_INVALID_STRING_BINDINGThe string binding is invalid.
RPC_S_INVALID_STRING_UUIDThe string UUID is invalid.
RPC_S_INVALID_TAGThe discriminant value does not match any of the case values. There is no default case.
RPC_S_INVALID_TIMEOUTThe time-out value is invalid.
RPC_S_INVALID_VERS_OPTIONThe version option is invalid.
RPC_S_MAX_CALLS_TOO_SMALLThe maximum number of calls is too small.
RPC_S_NAME_SERVICE_UNAVAILABLEThe name service is unavailable.
RPC_S_NO_BINDINGSThere are no bindings.
RPC_S_NO_CALL_ACTIVEThere is no remote procedure call active in this thread.
RPC_S_NO_CONTEXT_AVAILABLENo security context is available to allow impersonation.
RPC_S_NO_ENDPOINT_FOUNDNo endpoint has been found.
RPC_S_NO_ENTRY_NAMEThe binding does not contain an entry name.
RPC_S_NO_ENV_SETUPNo environment variable is set up.
RPC_S_NO_INTERFACESNo interfaces are registered.
RPC_S_NO_INTERFACES_EXPORTEDNo interfaces have been exported.
RPC_S_NO_MORE_BINDINGSThere are no more bindings.
RPC_S_NO_MORE_ELEMENTSThere are no more elements.
RPC_S_NO_MORE_MEMBERSThere are no more members.
RPC_S_NO_NS_PRIVILEGEThere is no privilege for a name-service operation.
RPC_S_NO_PRINC_NAMENo principal name is registered.
RPC_S_NO_PROTSEQSThere are no protocol sequences.
RPC_S_NO_PROTSEQS_REGISTEREDNo protocol sequences have been registered.
RPC_S_NOT_ALL_OBJS_UNEXPORTEDNot all objects are unexported.
RPC_S_NOT_CANCELLEDThe thread is not canceled.
RPC_S_NOT_LISTENINGThe server is not listening.
RPC_S_NOT_RPC_ERRORThe status code requested is not valid.
RPC_S_NOTHING_TO_EXPORTThere is nothing to export.
RPC_S_OBJECT_NOT_FOUNDThe object UUID has not been found.
RPC_S_OKThe requested operation completed successfully.
RPC_S_OUT_OF_MEMORYThe needed memory is not available.
RPC_S_OUT_OF_RESOURCESNot enough resources are available to complete this operation.
RPC_S_OUT_OF_THREADSThe RPC run-time library was not able to create another thread.
RPC_S_PROCNUM_OUT_OF_RANGEThe procedure number is out of range.
RPC_S_PROTOCOL_ERRORAn RPC protocol error has occurred.
RPC_S_PROTSEQ_NOT_FOUNDThe RPC protocol sequence has not been found.
RPC_S_PROTSEQ_NOT_SUPPORTEDThe RPC protocol sequence is not supported.
RPC_S_SEC_PKG_ERRORAn error that has no RPC mapping was returned by the security package. Retrieve the security provider error using the RPC Extended Error Mechanism.
RPC_S_SERVER_OUT_OF_MEMORYThe server has insufficient memory to complete this operation.
RPC_S_SERVER_TOO_BUSYThe server is too busy to complete this operation.
RPC_S_SERVER_UNAVAILABLEThe server is unavailable.
RPC_S_STRING_TOO_LONGThe string is too long.
RPC_S_TYPE_ALREADY_REGISTEREDThe type UUID has already been registered.
RPC_S_UNKNOWN_AUTHN_LEVELThe authentication level is unknown.
RPC_S_UNKNOWN_AUTHN_SERVICEThe authentication service is unknown.
RPC_S_UNKNOWN_AUTHN_TYPEThe authentication type is unknown.
RPC_S_UNKNOWN_AUTHZ_SERVICEThe authorization service is unknown.
RPC_S_UNKNOWN_IFThe interface is unknown.
RPC_S_UNKNOWN_MGR_TYPEThe manager type is unknown.
RPC_S_UNSUPPORTED_AUTHN_LEVELThe authentication level is not supported.
RPC_S_UNKNOWN_PRINCIPALThe principal name is not recognized.
RPC_S_UNSUPPORTED_NAME_SYNTAXThe name syntax is not supported.
RPC_S_UNSUPPORTED_TRANS_SYNThe transfer syntax is not supported by the server.
RPC_S_UNSUPPORTED_TYPEThe type UUID is not supported.
RPC_S_UUID_LOCAL_ONLYA UUID valid only for the local computer has been allocated.
RPC_S_UUID_NO_ADDRESSNo network address is available for constructing a UUID.
RPC_S_WRONG_KIND_OF_BINDINGThe binding handle is not the correct type.
RPC_S_ZERO_DIVIDEThe server has attempted an integer divide by zero.
RPC_X_BAD_STUB_DATAThe stub has received bad data.
RPC_X_BYTE_COUNT_TOO_SMALThe byte count is too small.
RPC_X_ENUM_VALUE_OUT_OF_RANGEThe enumeration value is out of range.
RPC_X_ENUM_VALUE_TOO_LARGEThe enumeration constant must be less than 65535.
RPC_X_INVALID_BOUNDThe specified bounds of an array are inconsistent.
RPC_X_INVALID_BUFFERThe pointer does not contain the address of a valid data buffer.
RPC_X_INVALID_PIPE_OPERATIONThe requested pipe operation is not supported.
RPC_X_INVALID_TAGThe discriminant value does not match any of the case values. There is no default case.
RPC_X_NO_MEMORYInsufficient memory is available.
RPC_X_NO_MORE_ENTRIESThe list of servers available for the [auto_handle] binding has been exhausted.
RPC_X_NULL_REF_POINTERA null reference pointer has been passed to the stub.
RPC_X_PIPE_APP_MEMORYInsufficient memory is available for pipe data.
RPC_X_SS_BAD_ES_VERSIONThe operation for the serializing handle is not valid.
RPC_X_SS_CANNOT_GET_CALL_HANDLEThe stub is unable to get the call handle.
RPC_X_SS_CHAR_TRANS_OPEN_FAILThe file designated by DCERPCCHARTRANS cannot be opened.
RPC_X_SS_CHAR_TRANS_SHORT_FILEThe file containing the character-translation table has fewer than 512 bytes.
RPC_X_SS_CONTEXT_DAMAGEDThe context handle changed during a call. Only raised on the client side.
RPC_X_SS_CONTEXT_MISMATCHThe context handle does not match any known context handles.
RPC_X_SS_HANDLES_MISMATCHThe binding handles passed to a remote procedure call do not match.
RPC_X_SS_IN_NULL_CONTEXTA null context handle is passed in an in parameter position.
RPC_X_SS_INVALID_BUFFERThe buffer is not valid for the operation.
RPC_X_SS_WRONG_ES_VERSIONThe software version is incorrect.
RPC_X_SS_WRONG_STUB_VERSIONThe stub version is incorrect.
122 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.