diff --git a/PInvoke/Security/AdvApi32/WinCrypt.cs b/PInvoke/Security/AdvApi32/WinCrypt.cs index 30cd3c8c..c6d1d8d3 100644 --- a/PInvoke/Security/AdvApi32/WinCrypt.cs +++ b/PInvoke/Security/AdvApi32/WinCrypt.cs @@ -6962,6 +6962,9 @@ namespace Vanara.PInvoke /// Provides a for that is disposed using . public class SafeHCRYPTHASH : SafeHANDLE { + /// Represents a NULL handle for . This must be used instead of . + public static readonly SafeHCRYPTHASH Null = new SafeHCRYPTHASH(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. /// @@ -6984,6 +6987,9 @@ namespace Vanara.PInvoke /// Provides a for that is disposed using . public class SafeHCRYPTPROV : SafeHANDLE { + /// Represents a NULL handle for . This must be used instead of . + public static readonly SafeHCRYPTPROV Null = new SafeHCRYPTPROV(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. ///