The code below is from Microsoft MSDN example for DirectShow:



CODE



#include <dshow.h>
void main(void)