Share via


IRMGetLicense::GetLicenseFromURL

banner art

Previous Next

IRMGetLicense::GetLicenseFromURL

The GetLicenseFromURL method sends a license request and retrieves a license. Use this method when predelivering a license.

Syntax

  HRESULT GetLicenseFromURL(
  BSTR  bstrXMLDoc,
  BSTR  bstrURL
);

Parameters

bstrXMLDoc

[in] String containing the consumer portion of a license request. If you do not want to use a content header, you can send an empty or NULL string.

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

The GetLicenseFromURL method calls the IRMGetLicense::GetSystemInfo method to retrieve the Windows Media Rights Manager portion of a license request, and then combines it with the user portion before sending the combined string to the license issuer.

See the Remarks section for the VBScript equivalent of this method (GetLicenseFromURL) for a full description of issuing licenses.

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.