There are many times that we have to do customization on top of AD RMS and use AD RMS SDKs. Microsoft has release the AD RMS SDK and Client 2.1.
AD RMS SDK 2.1 eliminates the need for developers to write thousands of lines of specialized code in order to discover AD RMS servers, download and use AD RMS certificates, and manage AD RMS identities, greatly simplifying the integration process.
Also, AD RMS SDK and Client 2.1 provides a number of stellar updates over AD RMS SDK 2.0 including:
More information here