WMRMRights.ExpirationAfterFirstUse

banner art

Previous Next

WMRMRights.ExpirationAfterFirstUse

The ExpirationAfterFirstUse property specifies and retrieves the license expiration in number of hours, beginning when the consumer first uses any of the rights specified in the license. For example, if a license allows playback, transferring to portable device, and copying (burning) to CD, any of these actions will begin the expiration countdown.

Syntax

  WMRMRights.
  ExpirationAfterFirstUse
  
  =
  
  DWORD
DWORD
  
  =
  
  WMRMRights.
  ExpirationAfterFirstUse

Parameters

This property takes no parameters.

Return Values

When getting the value, this property returns a DWORD specifying the number of hours for which a license is valid, beginning when it is first used. If it fails, it returns E_FAIL.

Remarks

By default, this property is not set and the license does not expire.

The ExpirationAfterFirstUse property is mutually exclusive with the WMRMRights.ExpirationOnStore property. If you set both properties in a license, only the last one specified is set in the license.

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.