Exemplo n.º 1
0
        /// <summary>
        /// Gets the system stores for the current user location.
        /// </summary>
        /// <returns>An array of strings (never null).</returns>
        public static IEnumerable <CertificateStore> GetSystemStores()
        {
            var names = new EnumSystemStore(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER).GetSystemStores();

            return(names.Select(name => new CertificateStore(name, CertificateStoreLocation.FromId(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER_ID))));
        }