MesDecodeIncrementalHandleCreate
The MesDecodeIncrementalHandleCreate
function creates a decoding handle for the incremental style of serialization.
#include <rpc.h>
#include <midles.h>
RPC_STATUS RPC_ENTRY MesDecodeIncrementalHandleCreate(
void *
UserState, |
|
MIDL_ES_READ ReadFn, |
|
handle_t
* pHandle |
|
); |
|
Parameters
UserState
Points to the
user-supplied state object that coordinates the Alloc, Write, and
Read routines.
ReadFn
Points to the
Read routine.
pHandle
Pointer to
the newly-created handle.
Remarks
The MesDecodeIncrementalHandleCreate
routine is used by applications to create the handle and initialize it for the
incremental style of decoding. When using the incremental style of decoding,
the user supplies a Read routine to provide a buffer containing the next
part of the data to be decoded. The buffer must be aligned at eight, and the
size of the buffer must be a multiple of eight. For additional information on
the user-supplied Alloc, Write and Read routines, see
Using Encoding Services
Return Values
Value |
Meaning |
RPC_S_OK |
Success |
RPC_S_INVALID_ARG |
Invalid
argument |
RPC_S_OUT_OF_MEMORY |
Out of
memory |
See Also