MesIncrementalHandleReset  ETXZ2V

The MesIncrementalHandleReset function re-initializes the handle for incremental serialization.

#include <rpc.h>

#include <midles.h>

RPC_STATUS RPC_ENTRY MesIncrementalHandleReset(

    handle_t  Handle,

 

    void  *  UserState,

 

    MIDL_ES_ALLOC  AllocFn,

 

    MIDL_ES_WRITE  WriteFn,

 

    MIDL_ES_READ  ReadFn,

 

    MIDL_ES_CODE  OpCode

 

   );

 

 

Parameters

Handle

The handle to be re-initialized.

UserState

Depending on the function, points to the user-supplied block that coordinates successive calls to the Alloc, Write, and Read routines.

AllocFn

Points to the Alloc routine. This argument can be NULL if the operation does not require it, or if the handle was previously initiated with the pointer.

WriteFn

Points to the Write routine. This argument can be NULL if the operation does not require it, or if the handle was previously initiated with the pointer.

ReadFn

Points to the Read routine. This argument can be NULL if the operation does not require it, or if the handle was previously initiated with the pointer.

OpCode

Specifies the operation. Valid operations are MES_ENCODE or MES_DECODE.

 

Remarks

The MesIncrementalHandleReset routine is used by applications to re-initialize the handle for the incremental style of encoding or decoding. For additional information on the user-supplied Alloc, Write and Read routines, see Using Encoding ServicesE6C496.

Return Values

Value

Meaning

RPC_S_OK

Success

RPC_S_INVALID_ARG

Invalid argument

RPC_S_OUT_OF_MEMORY

Out of memory

 

See Also

MesEncodeIncrementalHandleCreate, MesHandleFree