You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: windows.rs
    path of file: ./repos/Good-MITM/crates/trust_cert/src
    
    the code of the file until where you have to start completion: use rcgen::Certificate;
use windows::{
    w,
    Win32::Security::Cryptography::{
        CertAddEncodedCertificateToStore, CertCloseStore, CertOpenSystemStoreW,
        CERT_STORE_ADD_REPLACE_EXISTING, HCRYPTPROV_LEGACY, PKCS_7_ASN_ENCODING, X509_ASN_ENCODING,
    },
};

pub fn install_cert(cert: Certificate) {
    let mut cert = cert.serialize_der().unwrap();
    unsafe {
        // get root store
        let store = CertOpenSystemStoreW(HCRYPTPROV_LEGACY(0), w!("ROOT"))
            .expect("open 
    
pub fn install_cert(cert: Certificate) {
    let mut cert = cert.serialize_der().unwrap();
    unsafe {
        // get root store
        let store = CertOpenSystemStoreW(HCRYPTPROV_LEGACY(0), w!("ROOT"))
            .expect("open system root ca store");

        // add cert
        if !CertAddEncodedCertificateToStore(
            store,
            X509_ASN_ENCODING.0 | PKCS_7_ASN_ENCODING.0,
            cert.as_mut_ptr(),
            cert.len() as u32,
            CERT_STORE_ADD_REPLACE_EXISTING,
            0 as _,
        )
        .as_bool()
        {
            panic!("CertAddEncodedCertificateToStore failed")
        }

        if !CertCloseStore(store, 0).as_bool() {
            panic!("CertCloseStore failed")
        }
    }
}