I have an .avi file which doesn't run in windows media player. It has been encoded using a codec which is not installed on my PC. Using gspot and other utilities we can find out which codec is missing. But I want the to retrieve the missing codec name programmatically. How to retrieve the codec name using VC++/mfc programming. Is there any DirectShow API or any other APIs available using which we can find the missing codec name. I want to display to the user about that codec info.

Thanx in advance.