Windows Dev Center

Expand Minimize

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


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

Product

Rights Management Services client 1.0 SP2 or later

Header

Msdrm.h

Library

Msdrm.lib

DLL

Msdrm.dll

See also

DRMGetSignedIssuanceLicense

 

 

Show:
© 2015 Microsoft