Skip to main content
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.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Robuffer.h

DLL

Wintypes.dll

See also

IMarshal

 

 

Microsoft está realizando una encuesta en línea para comprender su opinión del sitio web de. Si decide participar, se le presentará la encuesta en línea cuando abandone el sitio web de.

¿Desea participar?