An application that is decoding encoded data can obtain the identity of the routine used to encode the data, prior to calling a routine to decode it. The MesInqProcEncodingId routine provides this identity. It has the following prototype:
RPC_STATUS RPC_ENTRY MesInqProcEncodingId (
handle_t Handle, /* decoding handle */
PRPC_SYNTAX_IDENTIFIER pInterfaceId, /* points to location
the identity will be
written to */
unsigned long __RPC_FAR * pProcNum); /* number of the routine
used to encode data */