Поделиться через


WMRMRights.ExpirationOnStore

banner art

Previous Next

WMRMRights.ExpirationOnStore

The ExpirationOnStore property specifies and retrieves the number of hours that a license is valid, beginning when the license is first stored on a consumer's computer.

Syntax

  WMRMRights.
  ExpirationOnStore
  
  =
  
  DWORD
DWORD
  
  =
  
  WMRMRights.
  ExpirationOnStore

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 stored on the consumer's computer. If it fails, it returns E_FAIL.

Remarks

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

This property removes the necessity for the script to perform Greenwich mean time-based date computations.

The ExpirationOnStore property is mutually exclusive with the WMRMRights.ExpirationAfterFirstUse 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.