I am able to get certificate collection in particulaer store by using the following statment.
X509Store.Certificates
But not sure how I can get the list of certificate store names present under current user or local machine. I also checked the StoreName enumeration but it only lists the standard store names but not the ones defined by the user.
I want the list of CERTIFICATE STORES, not the list of certificates in the particular store.
http://msdn.microsoft.com/en-us/library/aa376058(VS.85).aspx
Don't think there's a managed .net way of doing this. Possibly the closest may be to use .net's registry functions to read the store names from the registry?