Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 27, 2025

Updated Vanara.PInvoke.User32 from 4.1.6 to 4.2.0.

Release notes

Sourced from Vanara.PInvoke.User32's releases.

4.2.0

Major changes

  • Migrated solution to Central Package Management
  • Added Vanara.PInvoke.TelephonyApi (TAPI) assembly with all 3.x interfaces
  • Many additions, changes, and a few BREAKING CHANGES to Kernel32 as I did a full review after many years.

Additions

  • Added bindlink.h to Kernel32
  • Added ComConnectionPoint functionality to retrive the cookie for each supported IID.
  • Added functions for hit lists to BitHelper
  • Added generator that looks for MarshaledAlternativeAttribute and creates conversion code to process between original simple structure and new Marshaled structure
  • Added GuidToStringMarshaler, an ICustomMarshaler to convert an object with a Guid value or a Guid string representation to a formatted string value.
  • Added INVALID_HANDLE_VALUE fields to base handles
  • Added missing MRU list and Flat scrollbar functions and types
  • Added missing WinCrypt structures, updated IntPtr fields with stronger typed StructPointer and ArrayPointer types, added missing error constants.
  • Added ModalDialog class to handle resource based dialogs
  • Added multiple SendDlgItemMessage overloads (like SendMessage)
  • Added ReadFile overloads
  • Added SafeHANDLE null equality handler (false) and made ReleaseOwnership virtual
  • Added some annotation attributes that will eventually feed generators: AddAsMember, Ignore, and SizeDef
  • Added spuihelp.h methods and other minor fixes to SpeechApi
  • Added support to VanaraMarshaler for Marshaled structures
  • Added UnionHelper static class that has methods to make processing overlapping values easier without using ExplicitLayout
  • Added Win32Error.GetExceptionForLastError
  • Adds the two flags that were introduced after Windows 10 1709 but are still missing from Vanara’s CF_UPDATE_FLAGS enum.
  • Add ed CF_UPDATE_FLAG_ALWAYS_FULL & CF_UPDATE_FLAG_ALLOW_PARTIAL to CF_UPDATE_FLAGS (#​540)

Changes and Fixes

  • BREAKING CHANGE: Changed SafeAllocatedMemoryHandle.CopyTo(SafeAllocatedMemoryHandle h, SizeT l) and removed second param to prevent ambigous calls. Moved DangerousSetSize to SafeAllocateMemoryHandleBase. Added param check to CopyTo(SizeT start, SizeT length, ISafeMemoryHandleBase dest, SizeT destOffset = default) to prevent buffer overreads and fixed dest checks.
  • BREAKING CHANGES: Fixed MemoryApi MapUserPhysicalPagesScatter and GetMemoryErrorHandlingCapabilities parameters
  • Changed all handles to derive from SafeHANDLE instead of SafeHandle and derivatives to get extra functionality and work better with new analyzer. Hopefully not a breaking change.
  • Changed SafeEventHandle parameters to HEVENT for broader use.
  • Created NUnit TestWhenElevated attribute to mark methods that shouldn't fail if run when not elevated.
  • Exposed HINSTANCE of ModalDialog
  • Extracted ISafeMemoryHandleBase from SafeAllocatedMemoryHandleBase and made ISafeMemoryHandle derive from it.
  • Fixed bug how ModalDialog returned from WM_COMMAND
  • Fixed bug in Library nuspec file
  • Fixed bug in NativeMemoryStream.Read(byte[]) not handling null correctly.
  • Fixed Clipboard.AnsiToUnicode after changes to MultibyteToWideChar function
  • Fixed incomplete parameter declarations in CldApi.CfUpdatePlaceholder (#​546)
  • Fixed layout issues with Ole32.DVTARGETDEVICE (#​550)
  • Fixed layout of OPEN_VIRTUAL_DISK_PARAMETERS (#​541)
  • Fixed problem wtih WlanApi.DOT11_SSID not handling UTF-8 strings (#​545)
  • Fixed problems with GETTEXTEX fields
  • Minor changes, but unresolved problems, with CSharpRunner under .NET 8
  • More work on SpeechApi adding in alternative Marshaled structures and overloads
  • Updated AdvApi32.EVENT_TRACE_PROPERTIES with ctors
  • Updated NuGet packages for solution

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: Vanara.PInvoke.User32
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Aug 27, 2025
@Timthreetwelve Timthreetwelve merged commit 4776359 into main Aug 29, 2025
@dependabot dependabot bot deleted the dependabot/nuget/GetMyIP/Vanara.PInvoke.User32-4.2.0 branch August 29, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant