IMFByteStreamProxyClassFactory::CreateByteStreamProxy method (mfobjects.h)

Creates a proxy to a byte stream. The proxy enables a media source to read from a byte stream in another process.

Syntax

HRESULT CreateByteStreamProxy(
  [in]  IMFByteStream *pByteStream,
  [in]  IMFAttributes *pAttributes,
  [in]  REFIID        riid,
  [out] LPVOID        *ppvObject
);

Parameters

[in] pByteStream

A pointer to the IMFByteStream interface of the byte stream to proxy.

[in] pAttributes

Reserved. Set to NULL.

[in] riid

The interface identifier (IID) of the interface being requested.

[out] ppvObject

Receives a pointer to the interface. The caller must release the interface.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfobjects.h (include Mfidl.idl)

See also

IMFByteStreamProxyClassFactory