IWMDRMNetReceiver::GetRegistrationChallenge method

The GetRegistrationChallenge method generates a Windows Media DRM for Network Devices registration challenge message.

Syntax

HRESULT GetRegistrationChallenge(
  [out] BYTE  **ppbRegistrationChallenge,
  [out] DWORD *pcbRegistrationChallenge
);

Parameters

ppbRegistrationChallenge [out]

Address of a pointer that receives the address of the generated challenge. When finished with this data, you must release the memory by calling CoTaskMemFree.

pcbRegistrationChallenge [out]

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

Header
Wmdrmsdk.h

See also

IWMDRMNetReceiver Interface

IWMDRMNetReceiver::ProcessRegistrationResponse