public X509Store(IntPtr storeHandle) { if (storeHandle == IntPtr.Zero) { throw new ArgumentNullException("storeHandle"); } m_safeCertStoreHandle = CAPI.CertDuplicateStore(storeHandle); if (m_safeCertStoreHandle == null || m_safeCertStoreHandle.IsInvalid) { throw new CryptographicException(SR.GetString(SR.Cryptography_InvalidStoreHandle), "storeHandle"); } }