IWMPGraphCreation::GraphCreationPreRender
Collapse the table of content
Expand the table of content

IWMPGraphCreation::GraphCreationPreRender method

The GraphCreationPreRender method is called by Windows Media Player before a file is rendered.

Syntax


HRESULT GraphCreationPreRender(
  [in] IUnknown *pFilterGraph,
  [in] IUnknown *pReserved
);

Parameters

pFilterGraph [in]

Pointer to the IUnknown interface of the Windows Media Player control's DirectShow filter graph.

pReserved [in]

Reserved for future use.

Return value

Return a success HRESULT to allow playback to continue or a failure code to terminate playback.

Remarks

You can call QueryInterface through pFilterGraph to retrieve the DirectShow filter graph interfaces you require.

There is no guarantee that this method will be invoked for all files. Only files rendered with DirectShow will cause this method to be invoked and the WMPGC_FLAGS_USE_CUSTOM_GRAPH flag to be honored. CD, DVD, Image, Flash, Windows Media Format SDK, and Media Foundation playback will not invoke this method.

Windows Media Player 10 Mobile: This method is not supported.

Requirements

Version

Windows Media Player 10 or later

Header

Wmpservices.h

DLL

Wmp.dll

See also

IWMPGraphCreation Interface

 

 

Show:
© 2016 Microsoft