Microsoft DirectX 8.0 |
Saves and loads Microsoft® DirectShow® Editing Services (DES) project files in Extensible Markup Language (XML). This interface also provides methods for reading and writing DirectShow graph (.grf) files.
Requirements
Requires Qedit.h.
Requires Internet Explorer 4.0 or later.
Methods in Vtable Order
IUnknown methods Description QueryInterface Retrieves pointers to supported interfaces. AddRef Increments the reference count. Release Decrements the reference count. IXml2Dex Methods Description CreateGraphFromFile Not implemented. WriteGrfFile Writes a filter graph to a file in .grf format. WriteXMLFile Translates a timeline to XML and writes the XML data to a file. ReadXMLFile Loads an XML project file. Delete Not implemented. WriteXMLPart Not implemented. PasteXMLFile Not implemented. CopyXML Not implemented. PasteXML Not implemented. Reset Not implemented. ReadXML Not implemented. WriteXML Translates a timeline to an XML string.
Not implemented.
Syntax
HRESULT CopyXML( IUnknown *pTimeline, double dStart, double dEnd );
Not implemented.
Syntax
HRESULT CreateGraphFromFile( IUnknown **ppGraph, IUnknown *pTimeline, BSTR FileName );
Not implemented.
Syntax
HRESULT Delete( IUnknown *pTimeline, double dStart, double dEnd );
Not implemented.
Syntax
HRESULT PasteXML( IUnknown *pTimeline, double dStart );
Not implemented.
Syntax
HRESULT PasteXMLFile( IUnknown *pTimeline, double dStart, BSTR FileName );
Not implemented.
Syntax
HRESULT ReadXML( IUnknown *pTimeline, IUnknown *pXML );
Loads an XML project file. This method creates instances of all the objects expressed in the XML file and inserts them into the timeline, as well as applying any attributes given for the timeline, such as frame rate or default effect.
Syntax
HRESULT ReadXMLFile( IUnknown *pTimeline, BSTR XMLName );
Parameters
- pTimeline
- Pointer to a timeline object's IUnknown interface.
- XMLName
- String that specifies the name of the file to load.
Return Value
Returns S_OK if successful. Otherwise, returns VFW_E_INVALID_FILE_FORMAT or another error code.
Remarks
This method does not clear existing objects from the timeline before it inserts the new objects defined in the XML file. If you need to refresh an existing timeline, call IAMTimeline::ClearAllGroups first.
Not implemented.
Syntax
HRESULT Reset(void);
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.
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.
Translates a timeline to an XML string.
Syntax
HRESULT WriteXML( IUnknown *pTimeline, BSTR *pbstrXML );
Parameters
- pTimeline
- Pointer to the timeline object's IUnknown interface.
- pbstrXML
- Pointer to a variable of type BSTR that receives the XML string describing the timeline.
Return Value
Returns S_OK if successful. If there is insufficient memory for the conversion, returns E_OUTOFMEMORY. Otherwise, returns another error code.
Remarks
The method allocates memory for the string. The application must call SysFreeString to free the memory.
Translates a timeline to XML and writes the XML data to a file.
Syntax
HRESULT WriteXMLFile( IUnknown *pTimeline, BSTR FileName );
Parameters
- pTimeline
- Pointer to the timeline object'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.
E_INVALIDARG Argument is invalid. E_OUTOFMEMORY Insufficient memory. S_OK Success.
Remarks
This method generates an XML file that represents all the components in the timeline.
Not implemented.
Syntax
HRESULT WriteXMLPart( IUnknown *pTimeline, double dStart, double dEnd, BSTR FileName );