Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MesDecodeBufferHandleCreate function

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

Syntax


RPC_STATUS RPC_ENTRY MesDecodeBufferHandleCreate(
  char *Buffer,
  unsigned long BufferSize,
  handle_t *pHandle
);

Parameters

Buffer

Pointer to the buffer containing the data to decode.

BufferSize

Bytes of data to decode in the buffer.

pHandle

Pointer to the address to which the handle will be written.

Return value

ValueMeaning
RPC_S_OK

The call succeeded.

RPC_S_INVALID_ARG

The argument was not valid.

RPC_S_OUT_OF_MEMORY

Out of memory.

RPC_X_INVALID_BUFFER

The buffer was not valid.

 

Note  For a list of valid error codes, see RPC Return Values.

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Midles.h (include Rpc.h)

Library

Rpcrt4.lib

DLL

Rpcrt4.dll

See also

MesEncodeFixedBufferHandleCreate
MesHandleFree

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.