WMDRM_IMPORT_CONTENT_KEY structure

The WMDRM_IMPORT_CONTENT_KEY structure stores the content key used in importing protected content.

Syntax


typedef struct WMDRM_IMPORT_CONTENT_KEY {
  DWORD dwVersion;
  DWORD cbStructSize;
  DWORD dwIVKeyType;
  DWORD cbIVKey;
  DWORD dwContentKeyType;
  DWORD cbContentKey;
  BYTE  rgbKeyData[1];
} ;

Members

dwVersion

Version.

cbStructSize

Size of structure in bytes.

dwIVKeyType

Initialization vector key type. Set to WMDRM_KEYTYPE_RC4.

cbIVKey

Size of the initialization vector key in bytes.

dwContentKeyType

Content key type. Set to WMDRM_KEYTYPE_COCKTAIL.

cbContentKey

Size of the content key in bytes.

rgbKeyData

Address of a buffer containing the content key. The buffer size must match the value of cbContentKey. This key should match the key imported from the XMR license message.

Remarks

This structure, including the buffer containing the session key, must be encrypted with the session key and included in the pbEncryptedKeyMessage member of the WMDRM_IMPORT_INIT_STRUCT structure.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Version

Windows Media Format 11 SDK

Header

Drmexternals.h

See also

Structures

 

 

Show: