Using MFTrace to Trace Your Own Code

Now that you know how to trace Media Foundation and analyze those traces to figure out what Media Foundation is doing, the next step is to figure out what your own code is doing. That means adding traces for MFTrace to your code. The simplest way to add traces is to use the OutputDebugString function….