DRMRepair 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 DRMRepair function repairs a client machine by deleting certificates previously created for the machine or user.

Syntax


HRESULT DRMRepair(void);

Parameters

This function has no parameters.

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

The DRMRepair function first determines whether the machine is activated. If the machine activation is not valid, then the DRMRepair function will restore the machine to a clean state by deleting the machine certificate, rights account certificate, and client licensor certificate of the currently logged on user.

If the machine activation is valid but the rights account certificate is not valid, then the DRMRepair function will delete the rights account certificate and client licensor certificate of the currently logged on user.

Requirements

Product

Rights Management Services client 1.0 SP2 or later

Header

Msdrm.h

Library

Msdrm.lib

DLL

Msdrm.dll

See also

DRMSetGlobalOptions

 

 

Show: