IDRMStatusCallback::OnStatus method

[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 OnStatus method receives status messages from asynchronous DRM processes.

Syntax

HRESULT OnStatus(
  [in] MSDRM_STATUS      Status,
  [in] HRESULT           hr,
  [in] DRM_ATTR_DATATYPE dwType,
  [in] BYTE              *pValue,
  [in] void              *pvContext
);

Parameters

Status [in]

Status code. Message codes are defined in the MSDRM_STATUS enumeration type.

hr [in]

Return code that supports the status message.

dwType [in]

Type of the data pointed to by pValue. Set to one of the values of the DRM_ATTR_DATATYPE enumeration.

pValue [in]

Pointer to data related to the status message. The type of data is determined by the value of the dwType parameter. For more information, see the DRM_ATTR_DATATYPE enumeration.

pvContext [in]

Optional parameter that can be used to identify the object that sent the message. By setting pvContext when you register this callback, you can use the same callback to handle multiple asynchronous processes.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Remarks

None.

See also

DRM_ATTR_DATATYPE

IDRMStatusCallback Interface