NdrContextHandleSize function

The NdrContextHandleSize function returns the size of the supplied RPC context handle.

Syntax

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

Parameters

pStubMsg

Pointer to a MIDL_STUB_MESSAGE structure that contains the current status of the RPC stub. The BufferLength member contains the size of the context handle, in bytes. Structure is for internal use only; do not modify.

pMemory

Pointer to a string buffer that contains an RPC context handle.

pFormat

Pointer to a FORMAT_STRING structure that contains the format of the context handle specified in pMemory.

Return Value

This function has no return value. However, it throws an exception upon error.

Requirements

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

See Also

NdrContextHandleMemorySize