Code examples


Versions of the Microsoft Rights Management Service SDK released prior to March 2020 are deprecated; applications using earlier versions must be updated to use the March 2020 release. For full details, see the deprecation notice.

No further enhancements are planned for the Microsoft Rights Management Service SDK. We strongly recommend adoption of the Microsoft Information Protection SDK for classification, labeling, and protection services.

Microsoft Rights Management SDK 4.2 includes example code and working projects for some supported operating systems.

Available via GitHub

Our UI library provides re-usable UI for consumption and protection operations for developers who don’t want to create their own custom UI:


These topics will introduce you to important code elements for the associated version of the RMS SDK.