Load a Graph From an External Process



Load a Graph From an External Process

GraphEdit can load a filter graph created by an external process. With this feature, you can see exactly what filter graph your application builds, with only a minimal amount of additional code in your application.

The application must register the filter graph instance in the Running Object Table (ROT). The ROT is a globally accessible look-up table that keeps track of running objects. For information about how your application can add its filter graph to the ROT, see the topic Using the GraphEdit Utility in the Microsoft® DirectShow® documentation.

To use this feature, perform the following steps.

  1. Compile your application with code that adds a ROT entry for the filter graph.
  2. Run GraphEdit.
  3. Run your application.
  4. In the File menu, choose Connect.
  5. In the Connect To Graph dialog box, select the process id (pid) of the second application.
  6. Click OK.