diff --git a/PInvoke/User32/WinUser.Gdi.cs b/PInvoke/User32/WinUser.Gdi.cs
index 72a31c33..8ea78342 100644
--- a/PInvoke/User32/WinUser.Gdi.cs
+++ b/PInvoke/User32/WinUser.Gdi.cs
@@ -3044,6 +3044,15 @@ namespace Vanara.PInvoke
/// The window position. This member can be one or more of the following values.
public SetWindowPosFlags flags;
+
+ /// Creates a structure from an LPARAM value.
+ /// The LPARAM value.
+ /// A structure.
+ public static WINDOWPOS FromLParam(IntPtr lParam) => (WINDOWPOS)Marshal.PtrToStructure(lParam, typeof(WINDOWPOS));
+
+ /// Updates the value pointed to by an LPARAM value from this instance.
+ /// The LPARAM value to update.
+ public void UpdateLParam(IntPtr lParam) => Marshal.StructureToPtr(this, lParam, false);
}
/// Special window handles