Export (0) Print
Expand All

NdrPointerBufferSize function

The NdrPointerBufferSize function computes the needed buffer size, in bytes, for a top-level pointer to anything.

Syntax


void RPC_ENTRY NdrPointerBufferSize(
  _Inout_ PMIDL_STUB_MESSAGE pStubMsg,
  _In_    unsigned char      *pMemory,
  _In_    PFORMAT_STRING     pFormat
);

Parameters

pStubMsg [in, out]

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 [in]

Pointer to the data being sized.

pFormat [in]

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.

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

 

Remarks

Pointers embedded in structures, arrays, or unions call NdrPointerBufferSize directly.

Used for FC_RP, FC_UP, FC_FP, FC_OP format strings.

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 (include Rpc.h)

Library

RpcRT4.lib

DLL

RpcRT4.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft