Windows Media Format SDK banner art
PreviousNext

WMDMRIGHTS

The WMDMRIGHTS structure describes content-use rights.

Syntax

typedef struct __WMDMRIGHTS{
  UINT  cbSize;
  DWORD  dwContentType;
  DWORD  fuFlags;
  DWORD  fuRights;
  DWORD  dwAppSec;
  WORD  wPlaybackCount;
  WMDMDATETIME  ExpirationDate;
} WMDMRIGHTS,  *PWMDMRIGHTS;

Members

  cbSize

Size of the structure, in bytes.

  dwContentType

Double word containing the type of content.

  fuFlags

Bit field specifying the rights options in use for the content.

Flag Description
WMDM_RIGHTS_PLAYBACKCOUNT Number of times that the file can be played.
WMDM_RIGHTS_EXPIRATIONDATE Expiration date of the file.

  fuRights

Bit field containing the rights bits for the content.

  abAppSec[4]

Byte array that specifies the minimum level of application security requirement.

  wPlaybackCount

Word containing the number of remaining times that the content can be rendered.

  ExpirationDate

WMDMDATETIME structure containing the expiration date and time for the content. If the license has no expiration date, the wYear member is set to 0xFFFF, and all other members of WMDMDATETIME are ignored.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.