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.
[IMAGE_OPTIONAL_HEADER](https://github.com/dotnet/pinvoke/blob/master/src/Windows.Core/IMAGE_OPTIONAL_HEADER.cs) The layout difference between 32 and 64 bit images can't be fixed with UIntPtr. 64bit images don't have the BaseOfData field, and possibly other things that make the "sequential"...
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-clipcursor
Hi, would it be possible to integrate the following method into Kernel32 ? [DllImport("kernel32.dll", SetLastError = true)] public static extern IntPtr OpenThread(Kernel32.ThreadAccess dwDesiredAccess, bool bInheritHandle, int dwThreadId); I can confirm...
There seems to be some subtle difference vs just sending WM_SETFOCUS https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setfocus
WinAPI example: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-callwindowproca C# Example: ``` [DllImport("user32.dll")] public static extern IntPtr CallWindowProc(IntPtr lpPrevWndFunc, IntPtr hWnd, PInvoke.User32.WindowMessage Msg, IntPtr wParam, IntPtr lParam); ```
Please provide the `SHDefExtractIcon` API (s. https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shdefextracticonw).
So I had been trying to get error messages, but whenever I try it, it always returns chinese/japan or some similar symbols. Example 1: ```csharp FormatMessage(FormatMessageFlags.FORMAT_MESSAGE_ALLOCATE_BUFFER | FormatMessageFlags.FORMAT_MESSAGE_FROM_SYSTEM | FormatMessageFlags.FORMAT_MESSAGE_IGNORE_INSERTS,...
AnimateWindow - https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-animatewindow BringWindowToTop - https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-bringwindowtotop
Please consider to add RegisterHotKey and UnregisterHotKey functions
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-changedisplaysettingsexa https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-changedisplaysettingsexw