Partager via


IWMDRMDeviceApp::SynchronizeLicenses

banner art

The SynchronizeLicenses method synchronizes the license between the license store on the computer and the license store on the device.

Syntax

HRESULT SynchronizeLicenses(
  IWMDMDevice*  pDevice,
  IWMDMProgress3*  pProgressCallback,
  DWORD  cMinCountThreshold,
  DWORD  cMinHoursThreshold
);

Parameters

pDevice

[in]  Pointer to an IWMDMDevice object.

pProgressCallback

[in]  Progress callback on which the application can report progress of any steps that it might need to carry out. The step will be identified by the EventId parameter of IWMDMProgress3 methods.

cMinCountThreshold

[in]  Minimum count threshold.

cMinHoursThreshold

[in]  Minimum hours threshold.

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.
DRM_E_INVALIDXMLTAG XML is improperly formed.
DRM_E_NOTIMPL This functionality is not currently implemented. (SyncLicenses w/pDevice=NULL)
DRM_E_NOXMLCLOSETAG XML is improperly formed.
DRM_E_NOXMLOPENTAG XML is improperly formed.
DRM_E_OUTOFMEMORY Out of memory.
DRM_E_XMLNOTFOUND Failed to find a required XML tag.
NS_E_DEVICE_NOT_WMDRM_DEVICE The specified device is not a Windows Media DRM–compatible device.
NS_E_DRM_NEEDS_INDIVIDUALIZATION The DRM requires an individualized black box to perform this function. In other words, the Windows Media Format SDK requires a security upgrade.

See Also