|Microsoft DirectX 9.0|
The WriteGrfFile method writes a filter graph to a file in .grf format.
HRESULT WriteGrfFile( IUnknown *pGraph, BSTR FileName );
Pointer to the filter graph's IUnknown interface.
String that specifies the name of the file to write.
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.
|E_INVALIDARG||Argument is invalid.|
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.
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.