共用方式為


NdrSimpleStructBufferSize 函式 (rpcndr.h)

NdrSimpleStructBufferSize 函式會計算必要的緩衝區大小,以位元組為單位,以封送處理簡單結構。

語法

void NdrSimpleStructBufferSize(
  [in, out] PMIDL_STUB_MESSAGE pStubMsg,
  [in]      unsigned char      *pMemory,
  [in]      PFORMAT_STRING     pFormat
);

參數

[in, out] pStubMsg

維護 RPC 存根目前狀態 之MIDL_STUB_MESSAGE 結構的指標。 BufferLength 成員包含緩衝區的大小。 MIDL_STUB_MESSAGE 結構僅供內部使用,且不得修改。

[in] pMemory

要計算之簡單結構的指標。

[in] pFormat

格式字串描述的指標。

傳回值

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows 2000 Server [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 rpcndr.h
程式庫 Rpcrt4.lib
Dll Rpcrt4.dll

另請參閱

MIDL_STUB_MESSAGE