MesInqProcEncodingId
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 |
|
); |
|
Parameters
Handle
Specifies an
encoding or decoding handle.
pInterfaceId
Points to the
address in which the identity of the interface used to encode the data will be
written. pInterfaceId consists of the interface UUID and the version
number.
pProcNum
Specifies the
number of the routine used to encode the data.
Remarks
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.
Return Values
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 |