Common Framework
This source code is furnished to help you get up and running with DirectX more quickly. It is intended to illustrate how Direct3D works, and reduce the time it takes to build simple applications that allow you to experiment. It is used by the samples in the SDK. All of this source code lives in the Samples\Multimedia\Common\Src directory which can be installed during the SDK install.
This code is not intended to be cut and paste into a production application. This is not because it is poorly written, but rather that it is not designed for production. No attempt has been made to optimize it for performance. Very little error checking has been added as it obscures the functionality. Use to code to experiment with Direct3D to understand how it works.