Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
[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.
HRESULT CreateLicenseRevocationChallenge(
[in] BYTE *pbMachineID,
[in] DWORD cbMachineID,
[in] BYTE *pbChallenge,
[in] DWORD cbChallenge,
[out] BYTE **ppbChallengeOutput,
[out] DWORD *pcbChallengeOutput
);
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.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
None.
Requirement | Value |
---|---|
Header |
|
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today