This code is copied from Samples/Multimedia/DirectShow/BaseClasses
directory of April 2005 version of Platform SDK.
