WMDRM_IMPORT_INIT_STRUCT structure (wmsdkidl.h)

[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_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;
} WMDRM_IMPORT_INIT_STRUCT;

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],Windows Media Format 11 SDK
Minimum supported server Windows Server 2003 [desktop apps only]
Header wmsdkidl.h (include Drmexternals.h)

See also

Structures