Fonction NdrUserMarshalBufferSize (rpcndr.h)

La fonction NdrUserMarshalBufferSize calcule la taille de la mémoire tampon, en octets, nécessaire pour marshaler l’objet user marshal.

Syntaxe

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

Paramètres

[in, out] pStubMsg

Pointeur vers une structure MIDL_STUB_MESSAGE qui maintient la status actuelle du stub RPC. Le membre BufferLength contient la taille de la mémoire tampon. La structure est destinée uniquement à un usage interne ; ne modifiez pas.

[in] pMemory

Pointeur vers l’objet user marshal à calculer.

[in] pFormat

Pointeur vers la description de la chaîne de format.

Valeur de retour

None

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 2000 Professionnel [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows 2000 Server [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête rpcndr.h (inclure Rpc.h)
Bibliothèque Rpcrt4.lib
DLL Rpcrt4.dll