Provides a standard IBuffer marshaler to implement the semantics associated with the IBuffer interface when it is marshaled.
HRESULT WINAPI RoGetBufferMarshaler( _Out_ IMarshal **bufferMarshaler );
- bufferMarshaler [out]
pointer to Windows Runtime IBuffer marshaler
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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.
Minimum supported client
|Windows 8 [desktop apps | Windows Store apps]|
Minimum supported server
|Windows Server 2012 [desktop apps | Windows Store apps]|