Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FromHandle()

static IStorePal Internal.Cryptography.Pal.StorePal.FromHandle ( IntPtr storeHandle)
inlinestatic

Definition at line 29 of file StorePal.cs.

30 {
31 if (storeHandle == IntPtr.Zero)
32 {
33 throw new ArgumentNullException("storeHandle");
34 }
35 SafeCertStoreHandle safeCertStoreHandle = global::Interop.crypt32.CertDuplicateStore(storeHandle);
36 if (safeCertStoreHandle == null || safeCertStoreHandle.IsInvalid)
37 {
39 }
40 return new StorePal(safeCertStoreHandle);
41 }
StorePal(SafeCertStoreHandle certStore)
Definition StorePal.cs:89
static string Cryptography_InvalidStoreHandle
Definition SR.cs:76
Definition SR.cs:7
static readonly IntPtr Zero
Definition IntPtr.cs:18

References Internal.Cryptography.Pal.StorePal.StorePal(), System.SR.Cryptography_InvalidStoreHandle, Internal.Cryptography.Pal.Native.SafePointerHandle< T >.IsInvalid, and System.IntPtr.Zero.

Referenced by System.Security.Cryptography.X509Certificates.X509Store.X509Store().