I found the below code to install a certificate into local machines trusted publisher. But the code is in C# I want the same to be done in C. How to convert this to C?
private static void InstallCertificate(string cerFileName)
{
  X509Certificate2 certificate = new X509Certificate2(cerFileName);
  X509Store store = new X509Store(StoreName.TrustedPublisher,StoreLocation.LocalMachine);
  store.Open(OpenFlags.ReadWrite);
  store.Add(certificate);
  store.Close();
 }
Any Windows APIS available?