Compartir a través de


WMRMRights.TransferCount

banner art

Previous Next

WMRMRights.TransferCount

The TransferCount property specifies and retrieves the number of times the content can be transferred to portable devices or portable media using the AllowTransferToSDMI and AllowTransferToNonSDMI rights.

Syntax

  WMRMRights.
  TransferCount
  
  =
  
  DWORD
DWORD
  
  =
  
  WMRMRights.
  TransferCount

Parameters

This property takes no parameters.

Return Values

If the property succeeds, it returns a DWORD containing the number of transfers that the license permits. If it fails, it returns E_FAIL, 0x80004005.

Remarks

When a Windows Media file is transferred to a portable device or portable media, the license for it is stored in the content header. Some portable devices and portable media also have the ability to store licenses separately from the Windows Media files. If the Windows Media file is transferred to such a device, the TransferCount is decremented only the first time the file is transferred to it (assuming the license storage is not deleted or removed). For those portable devices and portable media that do not store licenses separately, the TransferCount is decremented every time the file is transferred. By default, this property is not set.

Example Code

  

Requirements

Version: Windows Media Rights Manager 7 SDK or later

Reference: wmrmobjs 1.0 Type Library

Library: wmrmobjs.dll

Platform: Windows Server 2003

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.