WMDRM_IMPORT_CONTENT_KEY structure
[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
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
Requirement | Value |
---|---|
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Version |
Windows Media Format 11 SDK |
Header |
|