Click to Rate and Give Feedback
MSDN
MSDN Library
Security
AD RMS Functions
 DRMGetOwnerLicense Function
DRMGetOwnerLicense Function

The DRMGetOwnerLicense function retrieves an owner license created by calling the DRMGetSignedIssuanceLicense.

Syntax

C++
HRESULT DRMGetOwnerLicense(
  __in     DRMPUBHANDLE hIssuanceLicense,
  __inout  UINT *puLength,
  __out    PWSTR wszOwnerLicense
);

Parameters

hIssuanceLicense [in]

A handle to a signed issuance license.

puLength [in, out]

An unsigned integer that contains the length, in characters, of the owner license retrieved by this function. The terminating null character is included in the length.

wszOwnerLicense [out]

A null-terminated string that contains the owner license in XrML format. For example XrML owner license, see Owner License XML Example.

Return Value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Return codeDescription
E_DRM_OWNER_LICENSE_NOT_FOUND

The owner license could not be found.

 

Remarks

An owner license is an end-user license that contains the OWNER right and allows the user to exercise all rights regardless of whether they are specifically granted. It is created by the AD RMS client when you call DRMGetSignedIssuanceLicense and sign an issuance license offline. If DRMGetSignedIssuanceLicense is called with the uFlags parameter set to DRM_OWNER_LICENSE_NOPERSIST, the owner license is saved in memory. Otherwise, it is saved in the license store. The DRMGetOwnerLicense function automatically retrieves the license from either location.

Requirements

ProductRights Management Services client 1.0 SP2 or later
HeaderMsdrm.h
LibraryMsdrm.lib
DLLMsdrm.dll

See Also

DRMGetSignedIssuanceLicense

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker