IWMDRMLicenseManagement::CreateLicenseRevocationChallenge method

[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 CreateLicenseRevocationChallenge method generates a license revocation challenge.

Syntax

HRESULT CreateLicenseRevocationChallenge(
  [in]  BYTE  *pbMachineID,
  [in]  DWORD cbMachineID,
  [in]  BYTE  *pbChallenge,
  [in]  DWORD cbChallenge,
  [out] BYTE  **ppbChallengeOutput,
  [out] DWORD *pcbChallengeOutput
);

Parameters

pbMachineID [in]

User-specified machine identifier. This value is used to query for a license on the server and must conform to whatever format the license server uses.

cbMachineID [in]

Size, in bytes, of the machine identifier.

pbChallenge [in]

User-specified challenge data. This data, in addition to the machine identifier, is used to query the license server for licenses to be revoked.

cbChallenge [in]

Size, in bytes, of the challenge data.

ppbChallengeOutput [out]

Address of a pointer that receives the address of the challenge output. This buffer is the data that is sent to the license revocation service. When finished with this data, you must release the memory by calling CoTaskMemFree.

pcbChallengeOutput [out]

Address of a variable that receives the size of the allocated challenge output data, in bytes.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Remarks

None.

Requirements

Requirement Value
Header
Wmdrmsdk.h

See also

IWMDRMLicenseManagement Interface