我发现下面的代码证书安装到受信任的发布本地机器。 但是,该代码是在C#我想在C.做如何将其转换为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();
}
任何的Windows API可用?