다음을 통해 공유


IWMLicenseRevocationAgent::GetLRBChallenge method (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 GetLRBChallenge method generates a response to a license revocation challenge message. Your application must send the response to the license server.

Syntax

HRESULT GetLRBChallenge(
  [in]  BYTE  *pMachineID,
  [in]  DWORD dwMachineIDLength,
  [in]  BYTE  *pChallenge,
  [in]  DWORD dwChallengeLength,
  [out] BYTE  *pChallengeOutput,
  [out] DWORD *pdwChallengeOutputLength
);

Parameters

[in] pMachineID

Address of the machine identifier in memory. The format of the machine identifier is determined by the service that issued the license.

[in] dwMachineIDLength

Size of the machine identifier in bytes.

[in] pChallenge

Address of the challenge message in memory. This message is generated by a component created by the license issuer.

[in] dwChallengeLength

Size of the challenge message in bytes.

[out] pChallengeOutput

Address of a buffer that receives the challenge response message.

[out] pdwChallengeOutputLength

Address of a variable that receives the size of the challenge response message 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

The license server generates the challenge as the result of user interaction. This process is typically managed by a Web component. The challenge response generated by calling this method must be sent back to the license server.

After the challenge and response have been processed, the license server sends a signed license revocation blob, which includes instructions about the licenses to remove. You can perform the license revocation by calling the ProcessLRB method.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only],Windows Media Format 9.5 SDK
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wmsdkidl.h (include Wmsdk.h)
Library Wmvcore.lib; WMStubDRM.lib (if you use DRM)

See also

IWMLicenseRevocationAgent Interface