NdrSimpleStructBufferSize function

The NdrSimpleStructBufferSize function calculates the required buffer size, in bytes, to marshal the simple structure.

Syntax

void NdrSimpleStructBufferSize(
  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. The MIDL_STUB_MESSAGE structure is for internal use only, and must not be modified.

pMemory

Pointer to the simple structure to be calculated.

pFormat

Pointer to the format string description.

Return Value

This function has no return values.

Requirements

   
Windows version Windows 2000 Professional [desktop apps | UWP apps] Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header rpcndr.h
Library Rpcrt4.lib
DLL Rpcrt4.dll

See Also

MIDL_STUB_MESSAGE