Online Signing Code Example
[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.0, which leverages functionality exposed by the client in Msipc.dll.]
The example discussed in the following topics requires that you enter the email address of the user for whom the issuance license is being created and signed. Service discovery is used to find the URL of the AD RMS certification service. For a more complete listing, see the OnlinePublishing sample included with the Microsoft Windows Software Development Kit (SDK).