Ejemplo n.º 1
0
        public static void SetRegFallback(
            String configString,
            String node,
            String entry,
            List <String> value
            )
        {
            CCertAdmin CertAdmin = new CCertAdmin();

            try {
                CertAdmin.SetConfigEntry(configString, node, entry, value);
            } catch (Exception e) {
                throw Error.ComExceptionHandler(e);
            } finally {
                CryptographyUtils.ReleaseCom(CertAdmin);
            }
        }
Ejemplo n.º 2
0
        public static Object GetRegFallback(
            String configString,
            String node,
            String entry
            )
        {
            CCertAdmin CertAdmin = new CCertAdmin();

            try {
                Object retn = CertAdmin.GetConfigEntry(configString, node, entry);
                CryptographyUtils.ReleaseCom(CertAdmin);
                return(retn);
            } catch (Exception e) {
                throw Error.ComExceptionHandler(e);
            } finally {
                CryptographyUtils.ReleaseCom(CertAdmin);
            }
        }