共用方式為


NdrSimpleStructMarshall 函式 (rpcndr.h)

NdrSimpleStructMarshall 函式會將簡單結構封送處理成網路緩衝區。

語法

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

參數

[in, out] pStubMsg

維護 RPC 存根目前狀態 之MIDL_STUB_MESSAGE 結構的指標。 MIDL_STUB_MESSAGE 結構僅供內部使用,不得修改。

[in] pMemory

要封送處理之簡單結構的指標。

[in] pFormat

格式字串描述的指標。

傳回值

成功時傳回 Null。 失敗時引發下列其中一個例外狀況。

錯誤 Description
STATUS_ACCESS_VIOLATION 發生存取違規。
RPC_S_INTERNAL_ERROR RPC 中發生錯誤。

規格需求

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

另請參閱

MIDL_STUB_MESSAGE