MesDecodeBufferHandleCreate

The MesDecodeBufferHandleCreate function creates a decoding handle and initializes it for a (fixed) buffer style of serialization.

#include <rpc.h>
#include <midles.h>
RPC_STATUS RPC_ENTRY MesDecodeBufferHandleCreate( 
  char  *  Buffer,             
  unsigned long  BufferSize,   
  handle_t *  pHandle          
);
 

Parameters

Buffer
Points to the buffer containing the data to decode.
BufferSize
Specifies the number of bytes of data to decode in the buffer.
pHandle
Points to the address to which the handle will be written.

Remarks

The MesDecodeBufferHandleCreate routine is used by applications to create a serialization handle and initialize the handle for the (fixed) buffer style of decoding. When using the fixed buffer style of decoding, the user supplies a single buffer containing all the encoded data. This buffer must have an address which is aligned at 8, and must be a multiple of 8 bytes in size. Further, it must be large enough to hold all of the data to decode.

Return Values

Value Meaning
RPC_S_OK Success
RPC_S_INVALID_ARG Invalid argument
RPC_S_OUT_OF_MEMORY Out of memory
RPC_X_INVALID_BUFFER Invalid buffer

QuickInfo

  Windows NT: Yes
  Windows CE: Unsupported.
  Header: Declared in midles.h.
  Import Library: Link with rpcrt4.lib.

See Also

MesEncodeFixedBufferHandleCreate, MesHandleFree