Share via


IRMGetLicense::GetLicenseFromURLAsync

banner art

Previous Next

IRMGetLicense::GetLicenseFromURLAsync

The GetLicenseFromURLAsync method creates a separate thread to send a license request and retrieve a license.

Syntax

  HRESULT GetLicenseFromURLAsync(
  BSTR  bstrXMLDoc,
  BSTR  bstrURL
);

Parameters

bstrXMLDoc

[in] String containing the consumer portion of a license request.

bstrURL

[in] String containing a URL. The license challenge data is sent to this URL using an HTML POST.

Return Values

This 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

This method creates a separate thread, and uses this thread to call GetLicenseFromURL. This method returns immediately after starting the thread. You should call GetAsyncCallStatus to get the status of the last call to GetLicenseFromURLAsync.

This method is useful if you embed a player in a Web page and want to deliver multiple licenses while the player is playing something else.

Requirements

Version: Windows Media Rights Manager 7 SDK or later

Reference: msnetobj 1.0 Type Library

Library: msnetobj.dll

Platform: Windows Server 2003

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.