Compartilhar via


Loading a GraphEdit File Programmatically

 
Microsoft DirectShow 9.0

Loading a GraphEdit File Programmatically

An application can use the IPersistStream interface to load a GraphEdit (.grf) file. Use the following code:

  
  • Note   The call to IPersistStream::Load in the previous code example can return a DirectShow error or success code. For a list of possible return values, see Error and Success Codes.

GraphEdit files are intended only for testing and debugging. They are not meant for use by end-user applications.

For more information about the StgIsStorageFile and StgOpenStorage functions, see the Platform SDK documentation.