Freigeben über


Windows Media Rights Manager SDK banner art

IRMGetLicense::StoreLicense

The StoreLicense method stores a license on the consumer's computer.

Syntax

HRESULT StoreLicense(
  BSTR  bstrXMLDoc
);

Parameters

bstrXMLDoc

[in] String containing a license response with one or more licenses.

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

For player applications based on the Windows Media Format 7 SDK, there is a limitation to the number of licenses that you can deliver by using this method. If more than approximately 10 licenses are issued with one call, the player application stops responding, and a stack overflow error appears if a debugger is used. The exact number depends on the size of your licenses. Because the error appears at the client and not the server, you should determine the license limit before you issue licenses to consumers. You can either test the process yourself or simply issue one license with each call to this method. This limitation does not occur in players based on Windows Media Format 9 Series SDK or later.

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