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。 失败时引发以下异常之一。

错误 说明
STATUS_ACCESS_VIOLATION 发生访问冲突。
RPC_S_INTERNAL_ERROR RPC 中出错。

要求

要求
最低受支持的客户端 Windows 2000 专业版 [桌面应用 |UWP 应用]
最低受支持的服务器 Windows 2000 Server [桌面应用 |UWP 应用]
目标平台 Windows
标头 rpcndr.h
Library Rpcrt4.lib
DLL Rpcrt4.dll

另请参阅

MIDL_STUB_MESSAGE