WMDRM_IMPORT_INIT_STRUCT structure

The WMDRM_IMPORT_INIT_STRUCT structure holds the encrypted session key and content key used in importing protected content.

Syntax


typedef struct WMDRM_IMPORT_INIT_STRUCT {
  DWORD dwVersion;
  DWORD cbEncryptedSessionKeyMessage;
  BYTE  *pbEncryptedSessionKeyMessage;
  DWORD cbEncryptedKeyMessage;
  BYTE  *pbEncryptedKeyMessage;
} ;

Members

dwVersion

Version.

cbEncryptedSessionKeyMessage

Size of the encrypted session key message in bytes.

pbEncryptedSessionKeyMessage

Address of a buffer containing the encrypted session key message. This message is contained in a field of a WMDRM_IMPORT_SESSION_KEY structure. The message and its associated key data are both encrypted with the Windows Media DRM machine public key.

cbEncryptedKeyMessage

Size of the encrypted key message in bytes.

pbEncryptedKeyMessage

Address of a buffer containing the encrypted key message. This message is contained in a field of a WMDRM_IMPORT_CONTENT_KEY structure. The message and its associated key data are both encrypted with the Windows Media DRM machine public key.

Remarks

This structure is used to initialize protected stream sample writing in a call to the IWMDRMWriter3::SetProtectStreamSamples method.

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: