private static IpcTemplateIssuer TemplateIssuerToIpcTemplateIssuer(TemplateIssuer templateIssuer)
 {
     IpcTemplateIssuer ipcTemplateIssuer = new IpcTemplateIssuer();
     ipcTemplateIssuer.connectionInfo = ConnectionInfoToIpcConnectionInfo(templateIssuer.ConnectionInfo);
     ipcTemplateIssuer.wszDisplayName = templateIssuer.DisplayName;
     ipcTemplateIssuer.fAllowFromScratch = templateIssuer.AllowFromScratch;
     return ipcTemplateIssuer;
 }
Esempio n. 2
0
 internal static extern int IpcCreateLicenseFromScratch(
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcTemplateIssuer pTemplateIssuer,
     [In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [In] IntPtr pvReserved,
     [Out] out SafeInformationProtectionLicenseHandle phLicense);
        private static TemplateIssuer IpcTemplateIssuerToTemplateIssuer(IpcTemplateIssuer ipcTemplateIssuer)
        {
            ConnectionInfo issuerConnectionInfo = IpcConnectionInfoToConnectionInfo(ipcTemplateIssuer.connectionInfo);

            return new TemplateIssuer(
                                issuerConnectionInfo,
                                ipcTemplateIssuer.wszDisplayName,
                                ipcTemplateIssuer.fAllowFromScratch);
        }