internal static extern bool CertGetCertificateChain( [In] SafeChainEngineHandle hChainEngine, [In] SafeCertContextHandle pCertContext, [In] ref FILETIME pTime, [In] SafeCertStoreHandle hAdditionalStore, [In] ref CERT_CHAIN_PARA pChainPara, [In] uint dwFlags, [In] IntPtr pvReserved, [In, Out] ref SafeX509ChainHandle ppChainContext);
internal static extern bool CertCreateCertificateChainEngine( [In] IntPtr pConfig, // PCERT_CHAIN_ENGINE_CONFI [Out] out SafeChainEngineHandle phChainEngine); // HCERTCHAINENGINE