The MesInqProcEncodingId function provides the identity of an encoding.
#include <rpc.h>
#include <midles.h>
RPC_STATUS RPC_ENTRY MesInqProcEncodingId(
handle_t Handle,
PRPC_SYNTAX_IDENTIFIER pInterfaceId,
unsigned long * pProcNum
);
The MesInqProcEncodingId routine is used by applications to obtain the identity of the routine used to encode the data before calling a routine to decode it. When called with an encoding handle, it returns the identity of the last encoding operation. When called with a decoding handle, it returns the identity of the next decoding operation by pre-reading the buffer.
This routine can only be used to check the identity of a procedure encoding; it cannot be used to check the identity for a type encoding.
Value | Meaning |
---|---|
RPC_S_OK | Success |
RPC_S_INVALID_ARG | Invalid argument |
RPC_S_OUT_OF_MEMORY | Out of memory |
RPC_S_UNKNOWN_IF | Unknown interface |
RPC_S_UNSUPPORTED_TRANS_SYN | Transfer syntax not supported by server |
RPC_X_INVALID_ES_ACTION | Invalid operation for a given handle |
RPC_X_WRONG_ES_VERSION | Incompatible version of the serializing package |
RPC_X_SS_INVALID_BUFFER | Invalid buffer |
Windows NT: Yes
Windows CE: Unsupported.
Header: Declared in midles.h.
Import Library: Link with rpcrt4.lib.