DRMGetOwnerLicense function

[The AD RMS SDK leveraging functionality exposed by

the client in Msdrm.dll is available for use in Windows Server 2008, Windows Vista, Windows Server 2008 R2, Windows 7, Windows Server 2012, and Windows 8. It may be altered or

unavailable in subsequent versions. Instead, use Active Directory Rights Management Services SDK 2.1,

which leverages functionality exposed by the client in Msipc.dll.]

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

Syntax

DRMEXPORT HRESULT UDAPICALL DRMGetOwnerLicense(
  IN DRMPUBHANDLE hIssuanceLicense,
  IN OUT UINT     *puOwnerLicenseLength,
  PWSTR           wszOwnerLicense
);

Parameters

hIssuanceLicense

A handle to a signed issuance license.

puOwnerLicenseLength

TBD

wszOwnerLicense

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 list. For a list of common error codes, see Common HRESULT Values.

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

   
Target Platform Windows
Header msdrm.h
Library Msdrm.lib
DLL Msdrm.dll

See Also

DRMGetSignedIssuanceLicense