Skip to main content
IMFByteStreamProxyClassFactory::CreateByteStreamProxy method

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


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


pByteStream [in]

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

pAttributes [in]

Reserved. Set to NULL.

riid [in]

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

ppvObject [out]

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.


Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]


Mfobjects.idl (include Mfidl.idl)

See also