源码地址:
https://github.com/Azure-Samples/Azure-Information-Protection-Samples/tree/master/IpcManagedAPI
RMS工具解析:RmsAnalyzer,https://www.eshlomo.us/azure-information-protection-and-azure-rms-troubleshooting-215-analyzer-tool-user-mode/
初始化
SafeNativeMethods.IpcInitialize();
SafeNativeMethods.IpcSetAPIMode(APIMode.Server);
var intUrl = new Uri(ConfigurationManager.AppSettings["Rmslicensing"]);//https://xxx.com/_wmcs/licensing
var owner = ConfigurationManager.AppSettings["owner"];
var intConn = new ConnectionInfo(null, intUrl, false);
获取所有配置模板
Collection<TemplateInfo> sl=