---
title: "vanara.pinvoke.user32 5.0.0 Breaking Changes on NuGet"
description: "What each vanara.pinvoke.user32 release removed, renamed or changed: 90 breaking changes in 1 version on NuGet, each with its source."
canonical_url: https://since.dev/packages/nuget/vanara.pinvoke.user32
last_updated: 2026-12-04
---

# vanara.pinvoke.user32 breaking changes

vanara.pinvoke.user32 5.0.0 (January 12, 2026) is its newest release with breaking changes, 90 of them. The first: Removed ShellItem.Dispose. Every breaking API change we have recorded in vanara.pinvoke.user32 on NuGet: 90 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.0.8`, released October 24, 2026. [Source repository](https://github.com/dahall/vanara)

Packages on NuGet run on .NET. [.NET end of life dates](https://since.dev/calendar/dotnet.md).

## vanara.pinvoke.user32 5.0.0 breaking changes

vanara.pinvoke.user32 5.0.0, released January 12, 2026: 90 breaking changes.

- **Removed** `ShellItem.Dispose`  

The parameterless ShellItem.Dispose() was hidden in favor of the new Dispose(bool) method; callers must use Dispose(bool). [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Removed** `Vanara.PInvoke.SizeFieldName`  

Vanara.PInvoke.SizeFieldName was removed; use SafeDefAttribute instead. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Removed** `Vanara.PInvoke.User32.EventConstants`  

Vanara.PInvoke.User32.EventConstants was removed in Vanara.PInvoke.User32 5.0.0 [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Removed** `Vanara.PInvoke.User32.ObjectIdentifiers`  

Vanara.PInvoke.User32.ObjectIdentifiers was removed in Vanara.PInvoke.User32 5.0.0 [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Behavior changed** `Clipboard`  

Clipboard now throws an error if used in a multithreaded apartment, so callers must run it in an STA thread. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Behavior changed** `IPropertyDescription.FormatForDisplay`  

FormatForDisplay now returns an HRESULT, so callers that ignore or expect the old return shape may need updating. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Behavior changed** `SafeMemStruct`  

On .NET 8 and later, binary serialized values supporting ISerialize are no longer automatically marshaled due to security concerns; code relying on this must change. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Behavior changed** `ShellFolder`  

Shell object wrappers now use the Dispose pattern and hard-release COM interfaces, which can change lifetime and disposal behavior for existing code. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Signature changed** `IContextMenu.GetCommandString`  

The GetCommandString declaration was changed, which may affect existing callers. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Signature changed** `IShellItem.BindToHandler`  

The BindToHandler signature and its docs were updated, so existing calls may no longer compile and need to be adjusted. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Signature changed** `MoveFileEx`  

The lpNewFileName parameter may now be null with MOVEFILE_DELAY_UNTIL_REBOOT; nullability changes can affect call sites. [github.com](https://github.com/dahall/Vanara/releases/tag/v5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.AUDIODESCRIPTION.Locale`  

Was uint Locale; now Vanara.PInvoke.LCID Locale. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.BSMINFO.hdesk`  

Was Vanara.PInvoke.HDESK hdesk; now Vanara.PInvoke.User32.HDESK hdesk. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.BSMINFO.luid`  

Was uint luid; now Vanara.PInvoke.LUID luid. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CascadeWindows`  

Was static ushort CascadeWindows(Vanara.PInvoke.HWND hwndParent, uint wHow, Vanara.PInvoke.PRECT lpRect, uint cKids, Vanara.PInvoke.HWND\[\] lpKids); now static ushort CascadeWindows(Vanara.PInvoke.HWND hwndParent... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CBT_CREATEWND.lpcs`  

Was nint lpcs; now Vanara.PInvoke.ManagedStructPointer\<Vanara.PInvoke.User32.CREATESTRUCT> lpcs. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CHANGEFILTERSTRUCT.Default`  

Was static Vanara.PInvoke.User32.CHANGEFILTERSTRUCT Default; now static readonly Vanara.PInvoke.User32.CHANGEFILTERSTRUCT Default. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CloseDesktop`  

Was static bool CloseDesktop(Vanara.PInvoke.HDESK hDesktop); now static bool CloseDesktop(Vanara.PInvoke.User32.HDESK hDesktop). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CloseWindowStation`  

Was static bool CloseWindowStation(Vanara.PInvoke.HWINSTA hWinSta); now static bool CloseWindowStation(Vanara.PInvoke.User32.HWINSTA hWinSta). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CreateDialogIndirect`  

Was static Vanara.PInvoke.User32.SafeHWND CreateDialogIndirect(Vanara.PInvoke.HINSTANCE hInstance, nint lpTemplate, Vanara.PInvoke.HWND hWndParent, Vanara.PInvoke.User32.DialogProc lpDialogFunc); now static Vanara.PInvoke.User32.SafeHWND... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CreateDialogIndirectParam`  

Was static Vanara.PInvoke.User32.SafeHWND CreateDialogIndirectParam(Vanara.PInvoke.HINSTANCE hInstance, nint lpTemplate, Vanara.PInvoke.HWND hWndParent, Vanara.PInvoke.User32.DialogProc lpDialogFunc, nint dwInitParam); now static... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.CreateWindowEx`  

Was static Vanara.PInvoke.User32.SafeHWND CreateWindowEx(Vanara.PInvoke.User32.WindowStylesEx dwExStyle, nint lpClassName, string lpWindowName, Vanara.PInvoke.User32.WindowStyles dwStyle, int X, int Y, int nWidth, int nHeight... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.DialogBox`  

Was static nint DialogBox(Vanara.PInvoke.HINSTANCE hInstance, Vanara.PInvoke.ResourceId lpTemplate, Vanara.PInvoke.HWND hWndParent, Vanara.PInvoke.User32.DialogProc lpDialogFunc) static nint DialogBox(Vanara.PInvoke.HINSTANCE hInstance... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.DialogBoxIndirect`  

Was static nint DialogBoxIndirect(Vanara.PInvoke.HINSTANCE hInstance, nint lpTemplate, Vanara.PInvoke.HWND hWndParent, Vanara.PInvoke.User32.DialogProc lpDialogFunc); now static nint DialogBoxIndirect(Vanara.PInvoke.HINSTANCE hInstance... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.DialogBoxIndirectParam`  

Was static nint DialogBoxIndirectParam(Vanara.PInvoke.HINSTANCE hInstance, nint hDialogTemplate, Vanara.PInvoke.HWND hWndParent, Vanara.PInvoke.User32.DialogProc lpDialogFunc, nint dwInitParam); now static nint... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.DialogBoxParam`  

Was static nint DialogBoxParam(Vanara.PInvoke.HINSTANCE hInstance, Vanara.PInvoke.ResourceId lpTemplateName, Vanara.PInvoke.HWND hWndParent, Vanara.PInvoke.User32.DialogProc lpDialogFunc, nint dwInitParam) static nint... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.EndDeferWindowPos`  

Was static bool EndDeferWindowPos(nint hWinPosInfo); now static bool EndDeferWindowPos(Vanara.PInvoke.HDWP hWinPosInfo). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.EnumDesktops`  

Was static System.Collections.Generic.IEnumerable\<string> EnumDesktops(Vanara.PInvoke.HWINSTA hwinsta) static bool EnumDesktops(Vanara.PInvoke.HWINSTA hwinsta, Vanara.PInvoke.User32.EnumDesktopProc lpEnumFunc, nint lParam); now static... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.EnumDesktopWindows`  

Was static bool EnumDesktopWindows(Vanara.PInvoke.HDESK hDesktop, Vanara.PInvoke.User32.EnumWindowsProc lpfn, nint lParam); now static System.Collections.Generic.IEnumerable\<Vanara.PInvoke.HWND>... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetAsyncKeyState`  

Was static short GetAsyncKeyState(int vKey); now static short GetAsyncKeyState(Vanara.PInvoke.EnumRebase\<Vanara.PInvoke.User32.VK, int> vKey). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetClassInfoEx`  

Was static bool GetClassInfoEx(Vanara.PInvoke.HINSTANCE hInstance, nint lpszClass, ref Vanara.PInvoke.User32.WNDCLASSEX lpwcx); now static bool GetClassInfoEx(Vanara.PInvoke.HINSTANCE hInstance, Vanara.PInvoke.Kernel32.ATOM lpszClass, ref... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetDCEx`  

Was static Vanara.PInvoke.HDC GetDCEx(Vanara.PInvoke.HWND hWnd, Vanara.PInvoke.HRGN hrgnClip, Vanara.PInvoke.User32.DCX flags); now static Vanara.PInvoke.User32.SafeReleaseHDC GetDCEx(Vanara.PInvoke.HWND hWnd, Vanara.PInvoke.HRGN hrgnClip... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetDlgItemText`  

Was static uint GetDlgItemText(Vanara.PInvoke.HWND hDlg, int nIDDlgItem, System.Text.StringBuilder lpString, int cchMax); now static uint GetDlgItemText(Vanara.PInvoke.HWND hDlg, int nIDDlgItem, System.Text.StringBuilder lpString, uint... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetKeyState`  

Was static short GetKeyState(int nVirtKey); now static short GetKeyState(Vanara.PInvoke.EnumRebase\<Vanara.PInvoke.User32.VK, int> nVirtKey). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetPointerDevice`  

Was static bool GetPointerDevice(Vanara.PInvoke.HANDLE device, ref Vanara.PInvoke.User32.POINTER_DEVICE_INFO pointerDevice); now static bool GetPointerDevice(Vanara.PInvoke.User32.HPOINTERDEVICE device, ref... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetPointerDeviceCursors`  

Was static bool GetPointerDeviceCursors(Vanara.PInvoke.HANDLE device, ref uint cursorCount, Vanara.PInvoke.User32.POINTER_DEVICE_CURSOR_INFO\[\] deviceCursors); now static bool GetPointerDeviceCursors(Vanara.PInvoke.User32.HPOINTERDEVICE... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetPointerDeviceProperties`  

Was static bool GetPointerDeviceProperties(Vanara.PInvoke.HANDLE device, ref uint propertyCount, Vanara.PInvoke.User32.POINTER_DEVICE_PROPERTY\[\] pointerProperties); now static bool... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetPointerDeviceRects`  

Was static bool GetPointerDeviceRects(Vanara.PInvoke.HANDLE device, ref Vanara.PInvoke.RECT pointerDeviceRect, ref Vanara.PInvoke.RECT displayRect); now static bool GetPointerDeviceRects(Vanara.PInvoke.User32.HPOINTERDEVICE device, ref... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetPointerFrameInfoHistory`  

Was static bool GetPointerFrameInfoHistory(uint pointerId, ref uint entriesCount, ref uint pointerCount, Vanara.PInvoke.User32.POINTER_INFO\[\] pointerInfo); now static bool GetPointerFrameInfoHistory(uint pointerId, ref... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetPointerFramePenInfoHistory`  

Was static bool GetPointerFramePenInfoHistory(uint pointerId, ref uint entriesCount, ref uint pointerCount, Vanara.PInvoke.User32.POINTER_PEN_INFO\[\] penInfo); now static bool GetPointerFramePenInfoHistory(uint pointerId, ref... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetPointerFrameTouchInfoHistory`  

Was static bool GetPointerFrameTouchInfoHistory(uint pointerId, ref uint entriesCount, ref uint pointerCount, Vanara.PInvoke.User32.POINTER_TOUCH_INFO\[\] touchInfo); now static bool GetPointerFrameTouchInfoHistory(uint pointerId, ref... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetProcessWindowStation`  

Was static Vanara.PInvoke.HWINSTA GetProcessWindowStation(); now static Vanara.PInvoke.User32.HWINSTA GetProcessWindowStation(). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetRawInputBuffer`  

Was static uint GetRawInputBuffer(nint pData, ref uint pcbSize, uint cbSizeHeader); now static uint GetRawInputBuffer(Vanara.PInvoke.User32.RAWINPUT\[\] pData, ref uint pcbSize, uint cbSizeHeader) static uint GetRawInputBuffer(ref... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetThreadDesktop`  

Was static Vanara.PInvoke.HDESK GetThreadDesktop(uint dwThreadId); now static Vanara.PInvoke.User32.HDESK GetThreadDesktop(uint dwThreadId). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.GetUserObjectInformation`  

Was static T GetUserObjectInformation\<T>(nint hObj, Vanara.PInvoke.User32.UserObjectInformationType nIndex); now static T GetUserObjectInformation\<T>(Vanara.PInvoke.User32.IUserObjectHandle hObj... [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.IsWinEventHookInstalled`  

Was static bool IsWinEventHookInstalled(uint winEvent); now static bool IsWinEventHookInstalled(Vanara.PInvoke.User32.EventConstant winEvent). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.KBDLLHOOKSTRUCT.flags`  

Was uint flags; now Vanara.PInvoke.User32.LLKHF flags. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.KBDLLHOOKSTRUCT.vkCode`  

Was uint vkCode; now Vanara.PInvoke.User32.VK vkCode {get; set;}. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.keybd_event`  

Was static void keybd_event(byte bVk, byte bScan, Vanara.PInvoke.User32.KEYEVENTF dwFlags, nint dwExtraInfo); now static void keybd_event(Vanara.PInvoke.User32.VK bVk, byte bScan, Vanara.PInvoke.User32.KEYEVENTF dwFlags, nint dwExtraInfo). [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)
- **Signature changed** `Vanara.PInvoke.User32.KEYBDINPUT.wVk`  

Was ushort wVk; now Vanara.PInvoke.EnumRebase\<Vanara.PInvoke.User32.VK, ushort> wVk. [nuget.org](https://www.nuget.org/packages/Vanara.PInvoke.User32/5.0.0)

And 40 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [vanara.pinvoke.coreaudio](https://since.dev/packages/nuget/vanara.pinvoke.coreaudio.md)
- [vanara.pinvoke.gdi32](https://since.dev/packages/nuget/vanara.pinvoke.gdi32.md)
- [vanara.pinvoke.shcore](https://since.dev/packages/nuget/vanara.pinvoke.shcore.md)
- [vanara.windows.extensions](https://since.dev/packages/nuget/vanara.windows.extensions.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
