Using the Callback Methods

Several interfaces in the Windows Media Format SDK contain methods that are called asynchronously. Most of these methods use callback functions to pass information to the controlling application.

The following sections describe some of the general issues regarding the use of callback methods with the Windows Media Format SDK.

Section Description
Using the OnStatus Callback Describes how to implement the IWMStatusCallback::OnStatus callback method, which is used by several objects to advise applications of SDK operation progress.
Using Events with Asynchronous Calls Describes a common technique to handle asynchronous method calls in an application.
Using the Context Parameter Introduces the pvContext parameter, shared by several callbacks and their calling methods, and explains how to use it.


Related topics

Programming Guide