Language

IBDA_WMDRMSession::GetLicense Method

[This documentation is preliminary and is subject to change.]
Gets a copy of a license key package currently used by the media transform device (MTD).

Syntax

HRESULT GetLicense(
  [in]       GUID *uuidKey,
  [in, out]  ULONG *pulPackageLen,
  [in, out]  BYTE *pbPackage
);

Parameters

  • uuidKey [in]
    The ID of the content key that the MTD uses to retrieve the associated license.

  • pulPackageLen [in, out]
    On input, specifies the number of bytes in the pbPackage array. On output, receives the size of the license key package, in bytes.

  • pbPackage [in, out]
    Pointer to a byte array, allocated by the caller, that receives the requested license key package.

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Client Requires Windows 7.
IDL Declared in Bdaiface.idl.

See Also

IBDA_WMDRMSession

Send comments about this topic to Microsoft

Build date: 12/4/2008