From 765495260abc4ce7c60e2093ab63ef68f061ad2f Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 9 Sep 2020 17:44:11 -0600 Subject: [PATCH] Added Null field to SafePCCERT_CONTEXT --- PInvoke/Cryptography/Crypt32/Wincrypt.Cert.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PInvoke/Cryptography/Crypt32/Wincrypt.Cert.cs b/PInvoke/Cryptography/Crypt32/Wincrypt.Cert.cs index 6d771d92..ded2ed56 100644 --- a/PInvoke/Cryptography/Crypt32/Wincrypt.Cert.cs +++ b/PInvoke/Cryptography/Crypt32/Wincrypt.Cert.cs @@ -3619,6 +3619,9 @@ namespace Vanara.PInvoke /// Provides a for that is disposed using . public class SafePCCERT_CONTEXT : SafeHANDLE { + /// Represents a NULL handle for . This must be used instead of . + public static readonly SafePCCERT_CONTEXT Null = new SafePCCERT_CONTEXT(IntPtr.Zero, false); + /// Initializes a new instance of the class and assigns an existing handle. /// An object that represents the pre-existing handle to use. ///