Microsoft DirectX 8.1 (C++)

IAMMultiMediaStream::OpenMoniker

The OpenMoniker method opens a file or device moniker; you can read media data from this moniker if DirectShow supports the moniker.

Syntax

HRESULT OpenMoniker(
    IBindCtx *pCtx,
    IMoniker *pMoniker,
    DWORD dwFlags
    );

Parameters

pCtx

[in] Pointer to the bind context associated with the moniker.

pMoniker

[in] Pointer to an IMoniker interface that specifies the moniker you want to open.

dwFlags

[in] Value that modifies how the filter graph will render the specified file. This value is a combination of one or more of the following flags.

Value Description
AMMSF_NOCLOCK Run the stream with no clock.
AMMSF_NORENDER Open the file, but do not render any streams. This flag should always be accompanied with the AMMSF_RUN flag.
AMMSF_RENDERALLSTREAMS Render all streams, including those that do not have an existing media stream.
AMMSF_RENDERTOEXISTING Only render to existing streams.
AMMSF_RUN Set the stream into the run state.

Return Value

Returns S_OK if successful or E_INVALIDARG if the dwFlags parameter is invalid.

See Also