pinvoke
pinvoke copied to clipboard
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.
When calling `PInvoke.Kernel32.CopyMemory` in a 32-bit process, a `System.EntryPointNotFoundException: 'Unable to find an entry point named 'RtlCopyMemory' in DLL 'Kernel32'.` occurs. .NET Framework 4.7.2, PInvoke 0.7.104 More information in [this...
Closes dotnet/pinvoke#600 * refactor bit shift of enum NTSTATUS.SeverityCode to property NTSTATUS.Severity * refactor NTStatusFacts.Severity() to acknowledge new bit equation. BREAKING CHANGE * All values of enum NTSTATUS.SeverityCode have changed!
closes #604 * refactor bit shift op of enum NTSTATUS/HResult.FacilityCode to properties NTSTATUS.Facility and HResult.Facility, respectively. * refactor NTSTATUSFacts, HResultFacts * update public API sheet BREAKING CHANGE * All values...
Simply put, this implies moving the bitshift operation out of the enum definition and into the NTSTATUS.Facility and HResult.Facility properties. This is more or less the same as what was...
- [ ] Move shift operation by FacilityShift to Get property accessor - [ ] (Optional) Add bit mask of 0xC0000000 e.g. property generated by CsWin32: ```cs public Severity SeverityCode...
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-invalidaterect
As announced in [Making Win32 APIs More Accessible to More Languages](https://blogs.windows.com/windowsdeveloper/2021/01/20/making-win32-apis-more-accessible-to-more-languages/), the Microsoft Windows SDK team now delivers a machine-readable metadata file that describes the entire Win32 SDK. This allows...
Tested on Windows 10 latest version. Correct code: ```cs [DllImport("user32", CharSet = CharSet.Unicode)] private static extern bool EnumDisplayMonitors(IntPtr hdc, IntPtr lpRect, MonitorEnumProc callback, IntPtr dwData); private delegate bool MonitorEnumProc(IntPtr hDesktop,...
[VerSetConditionMask](https://docs.microsoft.com/en-us/windows/win32/api/winnt/nf-winnt-versetconditionmask) relies on the API set DLL `api-ms-win-core-sysinfo-l1-2-0`, which causes calls to it to fail on Windows 7. https://github.com/dotnet/pinvoke/blob/2634eea66089c199790fcb72982936fd123bba24/src/Kernel32/Kernel32.cs#L728-L730 ``` ---> System.DllNotFoundException: Unable to load DLL 'api-ms-win-core-sysinfo-l1-2-0.dll' or one of...