Επεξεργασία

Κοινή χρήση μέσω


WMDRM_IMPORT_SESSION_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_SESSION_KEY structure holds the session key for importing protected content.

Syntax

typedef struct WMDRM_IMPORT_SESSION_KEY {
  DWORD dwKeyType;
  DWORD cbKey;
  BYTE  rgbKey[1];
} ;

Members

dwKeyType

Session key type. Set to WMDRM_KEYTYPE_RC4.

cbKey

Size of the session key, in bytes. This value can be as large as you need, given the limits of a single RSA OAEP operation over the entire message (this structure plus the session key).

rgbKey

Address of a buffer containing the session key. The buffer size must match the value of cbKey. The data in the buffer is a randomly generated key value.

Remarks

This structure, including the buffer containing the session key, must be encrypted with the Windows Media DRM machine public key and included in the pbEncryptedSessionKeyMessage 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
Drmexternals.h

See also

Structures