Export (0) Print
Expand All

WMDRM_IMPORT_SESSION_KEY structure

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

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft