Aplicaciones de escritorio de Windows
EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

RoGetBufferMarshaler function

Provides a standard IBuffer marshaler to implement the semantics associated with the IBuffer interface when it is marshaled.

Syntax


HRESULT WINAPI RoGetBufferMarshaler(
  _Out_ IMarshal **bufferMarshaler
);

Parameters

bufferMarshaler [out]

pointer to Windows Runtime IBuffer marshaler

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Provided for Windows Runtime language projections.

Custom IBuffer implementations are expected to be marshaled so that the remote instance eventually copies its contents back to the original instance. The IMarshal implementation provided by this method handles the copy by marshaling the current value of the IBuffer and specifying a platform-provided unmarshal COM class that creates an instance with identical IBuffer contents, length, and capacity.

The IMarshal implementation clones its contents to the original instance when the caller sets the Length property.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Robuffer.h

DLL

Wintypes.dll

See also

IMarshal

 

 

Adiciones de comunidad

Mostrar:
© 2016 Microsoft