diff --git a/PInvoke/Gdi32/WinGdi.SafeDCHandles.cs b/PInvoke/Gdi32/WinGdi.SafeDCHandles.cs
index e2cbfbd0..0d87eb60 100644
--- a/PInvoke/Gdi32/WinGdi.SafeDCHandles.cs
+++ b/PInvoke/Gdi32/WinGdi.SafeDCHandles.cs
@@ -60,6 +60,9 @@ namespace Vanara.PInvoke
private SafeHBITMAP() : base() { }
+ /// A NULL value for this handle.
+ public static readonly SafeHBITMAP Null = new(IntPtr.Zero, false);
+
/// Performs an implicit conversion from to .
/// The safe handle instance.
/// The result of the conversion.
@@ -88,6 +91,9 @@ namespace Vanara.PInvoke
private SafeHBRUSH() : base() { }
+ /// A NULL value for this handle.
+ public static readonly SafeHBRUSH Null = new(IntPtr.Zero, false);
+
/// Performs an implicit conversion from to .
/// The safe handle instance.
/// The result of the conversion.
@@ -114,6 +120,9 @@ namespace Vanara.PInvoke
private SafeHDC() : base() { }
+ /// A NULL value for this handle.
+ public static readonly SafeHDC Null = new(IntPtr.Zero, false);
+
/// Gets the screen compatible device context handle.
/// The screen compatible device context handle.
public static SafeHDC ScreenCompatibleDCHandle => CreateCompatibleDC(HDC.NULL);
@@ -153,6 +162,9 @@ namespace Vanara.PInvoke
private SafeHFONT() : base() { }
+ /// A NULL value for this handle.
+ public static readonly SafeHFONT Null = new(IntPtr.Zero, false);
+
/// Performs an implicit conversion from to .
/// The safe handle instance.
/// The result of the conversion.
@@ -182,6 +194,9 @@ namespace Vanara.PInvoke
private SafeHPALETTE() : base() { }
+ /// A NULL value for this handle.
+ public static readonly SafeHPALETTE Null = new(IntPtr.Zero, false);
+
/// Performs an implicit conversion from to .
/// The safe handle instance.
/// The result of the conversion.
@@ -210,6 +225,9 @@ namespace Vanara.PInvoke
private SafeHPEN() : base() { }
+ /// A NULL value for this handle.
+ public static readonly SafeHPEN Null = new(IntPtr.Zero, false);
+
/// Performs an implicit conversion from to .
/// The safe handle instance.
/// The result of the conversion.
@@ -238,6 +256,9 @@ namespace Vanara.PInvoke
private SafeHRGN() : base() { }
+ /// A NULL value for this handle.
+ public static readonly SafeHRGN Null = new(IntPtr.Zero, false);
+
/// Performs an implicit conversion from to .
/// The safe handle instance.
/// The result of the conversion.