NdrUserMarshalUnmarshall function

The NdrUserMarshalUnmarshall function calls a user-defined unmarshal routine to unmarshal data with the attribute.

Syntax


RPCRTAPI unsigned char* RPC_ENTRY NdrUserMarshalUnmarshall(
  _Inout_ PMIDL_STUB_MESSAGE pStubMsg,
  _In_    unsigned char      **ppMemory,
  _In_    PFORMAT_STRING     pFormat,
  _In_    unsigned char      fMustAlloc
);

Parameters

pStubMsg [in, out]

Pointer to a MIDL_STUB_MESSAGE structure that maintains the current status of the RPC stub. The MIDL_STUB_MESSAGE structure is for internal use only, and must not be modified.

ppMemory [in]

Pointer to user data object to be unmarshalled.

pFormat [in]

Format string description of the pointer.

fMustAlloc [in]

Flag that specifies whether the stub must allocate the memory into which the user data object is to be unmarshalled. Specify TRUE if RPC must allocate ppMemory.

Return value

Returns NULL upon success. Returns one of the following exception codes upon error.

ErrorDescription
STATUS_ACCESS_VIOLATIONAn access violation occurred.
RPC_S_INTERNAL_ERRORAn error occurred in RPC.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Rpcndr.h

Library

Rpcrt4.lib

DLL

Rpcrt4.dll

See also

MIDL_STUB_MESSAGE
wire_marshal

 

 

Show: