Is there a root include file for Media Foundation?
Every time when I have to use IMFMediaSource, I have to add this to my code :
#include <Mfidl.h> // for IMFMediaSource
#pragma comment (lib, "Mfuuid.lib") // for IMFMediaSource
And, when I have to use MFCreateAttributes, I have to add this to my code :
#include <Mfapi.h> // for MFCreateAttributes
#pragma comment (lib, "Mfplat.lib") // for MFCreateAttributes
This is not very convenient. When I am writing DShow, I can use this to involve most of the functions :
#include <Dshow.h>
#pragma comment (lib, "Strmiids.lib")
I think MF might have a root include file too. (Isn’t it)