IWMDRMDeviceApp::ProcessMeterResponse
The ProcessMeterResponse method clears the device metering data.
Syntax
HRESULT ProcessMeterResponse(
IWMDMDevice* pDevice,
BYTE* pbResponse,
DWORD cbResponse,
DWORD* pdwFlags
);
Parameters
pDevice
[in] Pointer to an IWMDMDevice object.
pbResponse
[in] Response.
cbResponse
[in] Size of the response, in bytes.
pdwFlags
[out] Device status flags. This value must be one of the following flags.
Flag | Description |
WMDRM_DEVICE_ISWMDRM | The device supports Windows Media DRM 10 for Portable Devices. |
WMDRM_DEVICE_NEEDCLOCK | The device needs a clock. |
WMDRM_DEVICE_REVOKED | The device has been revoked. |
Return Values
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. |
DRM_E_INVALIDARG | One or more arguments are not valid. |
Errors from the device | Any of a number of device errors. |
Errors from the DRM Client | Any of a number of internal DRM client errors. |
NS_E_DEVICE_NOT_WMDRM_DEVICE | The specified device is not a Windows Media DRM–compatible device. |
Remarks
For detailed information on using this method, see Best Practices for Using Metering APIs.
Requirements
Header: Defined in WMDRMDeviceApp.idl.
Library: mssachlp.lib
See Also