Pinvoke Versions Save

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.

v0.7.124

1 year ago

Changes:

  • #581: Fix wrong value of FILE_FLAG_POSIX_SEMANTICS in Kernel32+CreateFileFlags.cs
  • #594: Fix BitBlt to take SafeDCHandle
  • #591: Fix ReadConsoleOutput

Enhancements:

  • #595: add a couple of APIs from user32.dll
  • #585: WinUsb_WritePipeAsync: Use ReadOnlyMemory instead of Memory
  • #586: Add WinUsb_FlushPipe, WinUsb_GetAssociatedInterface

Others:

  • #593: [Question] Issue with IntPtr versus Safehandles in Gdi32.BitBlt
  • #576: Fix broken defines

v0.7.104

3 years ago

Changes:

Fixes:

  • #563: Kernel32.GetModuleHandle should return IntPtr instead of SafeHandle

Enhancements:

  • #535: Add CreateFile overload that doesn't require a string object

Others:

  • #562: Fix GetCursorInfo to use ref instead of out
  • #560: Fix GetMonitorInfo signature
  • #558: User32.GetMonitorInfo() has the wrong signature.
  • #555: Rename USer32+HELPINFO.cs to User32+HELPINFO.cs
See More
  • #554: CWPSTRUCT, CWPRETSTRUCT, Prop functions and Control Window Style enums
  • #543: Add User32 ChangeWindowMessageFilterEx and more
  • #540: User32.ChangeWindowMessageFilterEx
  • #532: EnumChildWindows can't be found in PInvoke.User32 package
  • #542: Add User32.GetLastInputInfo
  • #541: Update UAP target to 10.0.16299
  • #539: Add WS_EX_NOREDIRECTIONBITMAP

This list of changes was auto generated.

v0.7.78

3 years ago

Changes:

Fixes:

  • #527: Can't get DwmGetWindowAttribute to work
  • #523: ReadConsole signature has wrong parameter mode
  • #520: MONITORINFO struct mixed up
  • #458: User32: make MENUITEMINFO.Create() static

Enhancements:

  • #519: Generate Span<T> overloads where arrays would be
  • #444: FriendlyFlags.Array should generate Span<T> overloads
  • #516: Friendly overloads now use inheritdoc
  • #493: Use C# sizeof wherever possible
See More
  • #459: SHCore fixes/additions and add User32 UnregisterClass

Others:

  • #529: Update .NETSDK to 3.1.402
  • #528: Fix DwmGetWindowAttribute method signature
  • #526: Update C# extension name
  • #525: Fix Kernel32.ReadConsole method signature
  • #521: Fix up MONITORINFO struct
  • #517: Fix up crefs to refer to original p/invoke method
  • #518: Fix faulty User32 LoadString p/invoke
  • #495: Add NativeOverlapped overloads
  • #513: Add WinUsb_WritePipeAsync, WinUsb_ReadPipeAsync
  • #510: Add EnumDisplaySettings
  • #512: Update README.md
  • #511: Fix bad p/invoke definition of NetUserEnum
  • #509: Add RtlGetVersion(OSVERSIONINFOEX) overload
  • #504: Add DeviceIoControlAsync helper method
  • #508: Move DeviceIoControl out of "store banned"
  • #507: Update StyleCop and other packages
  • #494: Move types up to Windows.Core
  • #503: Add unit test for DeviceIOControl
  • #497: <processthreadsapi.h> part 2
  • #506: Format-Document on solution
  • #498: Add NTDll.RtlGetVersion
  • #502: Promote shipped APIs
  • #499: Add Kernel32.GetNativeSystemInfo
  • #496: Add ReadProcessMemory overload which takes a SafeObjectHandle
  • #475: Replace our use of Marshal.SizeOf with C# sizeof keyword
  • #492: <processthreadsapi.h> functions
  • #476: Drop .NET 2.0, netstandard1.1 support
  • #490: Remove GitHub Release as an expected stage in PRs
  • #481: Add SetupDiGetDriverInfoDetail
  • #484: Fix Cabinet.Tests when run with xunit.console
  • #486: Add x64 test run
  • #483: WinUsb: Add missing [OfferFriendlyOverloads] attribute
  • #482: SetupDiEnumDeviceInfo: Mark deviceInfoData bidirectional
  • #463: Kernel32 Threading API
  • #473: Add CfgMgr32 API
  • #477: Add LookupPrivilegeValue
  • #478: Add BCryptKeyDerivation
  • #479: Add pseudo console APIs
  • #365: BCryptKeyDerivation
  • #466: Add IPHlpApi
  • #465: Add NewDev API
  • #468: Add NTDll.NtQueryInformationProcess
  • #474: Add WinUsb API
  • #472: Additional functions: EnumDisplayDevices
  • #464: SetupApi: Add new methods
  • #471: Add cabinet API
  • #469: Remove LayoutKind.Sequential attributes
  • #470: Add Shell32!CommandLineToArgvW
  • #467: Add Kernel32.GetVolumeInformation
  • #462: Add DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED
  • #451: User32.UnregisterClass
  • #460: Fix MENUITEMINFO.Create() to be static
  • #454: Contribution guide missing min/max platform targets

This list of changes was auto generated.

v0.6.49

3 years ago

Changes:

Fixes:

  • #398: LOADED_IMAGE is not marshaled correctly
  • #427: PInvoke.Gdi32.CreateCompatibleDC throws a MissingMethodException

Others:

  • #456: Add code of conduct blurb to readme
  • #452: Incorporate into .NET Foundation
  • #450: Add MsgWaitForMultipleObjectsEx
  • #447: Add kernel32!SetErrorMode
  • #448: Fix build break
  • #420: System.Drawing.Point instead of POINT?
See More
  • #431: Fix EntryPoints for MoveMemory, CopyMemory, FillMemory, ZeroMemory
  • #397: Update User32::WinEventProc and MSCorEE::GetVersionFromProcess
  • #445: Add several menu-related methods
  • #446: Update to .NET Core SDK 3.1.100
  • #443: Add SetupDiGetDeviceProperty to SetupApi
  • #440: Add kernel32!SetHandleInformation and kernel32!GetHandleInformation

This list of changes was auto generated.

v0.6.6

3 years ago

v0.5.155

5 years ago

v0.5.152

5 years ago

v0.5.147

6 years ago

v0.5.134

6 years ago

v0.5.126

6 years ago