EC_WMT_EVENT (Windows Media Format 11 SDK)

[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.]

Sent by the Windows Media Format SDK when an application uses the ASF Reader filter to play ASF files protected by digital rights management (DRM).

Parameters

lParam1

Can be one of the following WMT_STATUS values.

WMT_STATUS Message Description
WMT_NO_RIGHTS The file is protected with DRM version 1 and the application has no rights to perform the requested action.
WMT_ACQUIRE_LICENSE The license acquisition process has been completed. (This does not necessarily mean that a license was successfully acquired.)
WMT_NO_RIGHTS_EX The file is protected with DRM version 7 and the application has no rights to perform the requested action.
WMT_NEEDS_INDIVIDUALIZATION The license allows only individualized applications to perform the requested action.
WMT_INDIVIDUALIZE The individualization process is now being performed or has been completed.

 

lParam2

Pointer to an AM_WMT_EVENT_DATA structure that contains information about the event in the pData member pointer, as well as an HRESULT status code sent by the Windows Media Format SDK. The value of lParam2 depends on the value of lParam1, as described in the following table. (The "WM_" structures are defined in the Windows Media Format SDK.)

If lParam1 is... AM_WMT_EVENT_DATA.pData is...
WMT_NO_RIGHTS A pointer to a WCHAR string containing a challenge URL.
WMT_ACQUIRE_LICENSE A pointer to a WM_GET_LICENSE_DATA structure.
WMT_NO_RIGHTS_EX A pointer to a WM_GET_LICENSE_DATA structure.
WMT_NEEDS_INDIVIDUALIZATION NULL.
WMT_INDIVIDUALIZE A pointer to a WM_INDIVIDUALIZE_STATUS structure.

 

Digital Rights Management Features

DirectShow QASF Reference

Enabling DRM Support