IWMRegisterCallback interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMRegisterCallback interface enables the application to get status messages from a sink object.

By default, the writer object does not send the application any status messages from the sink object. To get status messages from a sink object, the application must query the sink object for the IWMRegisterCallback interface and call the Advise method.

The file sink object, the network sink object, and the push sink object all expose this interface. To obtain a pointer to this interface for a sink, call QueryInterface on any of these sink objects.

Inheritance

The IWMRegisterCallback interface inherits from the IUnknown interface. IWMRegisterCallback also has these types of members:

Methods

The IWMRegisterCallback interface has these methods.

 
IWMRegisterCallback::Advise

The Advise method registers the application to receive status messages from the sink object.
IWMRegisterCallback::Unadvise

The Unadvise method unregisters the application's IWMStatusCallback callback interface. Call this method when the application has finished using the sink object. It notifies the object to stop sending status events to the application.

Requirements

   
Target Platform Windows
Header wmsdkidl.h

See also

Interfaces

Writer File Sink Object

Writer Network Sink Object