pinvoke icon indicating copy to clipboard operation
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.

Results 66 pinvoke issues
Sort by recently updated
recently updated
newest added

[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

api request

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...

api request

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

api request

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); ```

api request

Please provide the `SHDefExtractIcon` API (s. https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shdefextracticonw).

api request

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

api request

Please consider to add RegisterHotKey and UnregisterHotKey functions

api request

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

api request