NdrInterfacePointerBufferSize function

The NdrInterfacePointerBufferSize function calculates the size of the buffer, in bytes, needed to marshal the interface pointer.

Syntax

void NdrInterfacePointerBufferSize(
  PMIDL_STUB_MESSAGE pStubMsg,
  unsigned char      *pMemory,
  PFORMAT_STRING     pFormat
);

Parameters

pStubMsg

Pointer to a MIDL_STUB_MESSAGE structure that maintains the current status of the RPC stub. The BufferLength member contains the size of the buffer. This structure is for internal use only and should not be modified.

pMemory

Pointer to the interface pointer to be calculated.

pFormat

Pointer to the format string description.

Return Value

This function has no return values. If an error occurs, the function throws one of the following exception codes. In addition, the function can throw exception codes from CoGetMarshalSizeMax.

Error Description
STATUS_ACCESS_VIOLATION An access violation occurred.
RPC_S_INTERNAL_ERROR An error occurred in RPC.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header rpcndr.h (include Rpc.h)
Library RpcRT4.lib
DLL RpcRT4.dll