Microsoft DirectX 9.0

IXml2Dex::WriteGrfFile

The WriteGrfFile method writes a filter graph to a file in .grf format.

Syntax

HRESULT WriteGrfFile(
    IUnknown *pGraph,
    BSTR FileName
);

Parameters

pGraph

Pointer to the filter graph's IUnknown interface.

FileName

String that specifies the name of the file to write.

Return Value

Returns an HRESULT value that depends on the implementation of the interface. HRESULT can include one of the following standard constants, or other values not listed.

Value Description
E_FAIL Failure.
E_INVALIDARG Argument is invalid.
S_OK Success.

This method can also return error codes generated by internal calls to the IStorage::CreateStream and IPersist::Save methods. For more information, see the Platform SDK.

Requirements

Requires Internet Explorer 4.0 or later.

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also