Vanara.PInvoke.User32 4.0.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Vanara.PInvoke.User32 --version 4.0.1
NuGet\Install-Package Vanara.PInvoke.User32 -Version 4.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.User32" Version="4.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vanara.PInvoke.User32 --version 4.0.1
#r "nuget: Vanara.PInvoke.User32, 4.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vanara.PInvoke.User32 as a Cake Addin
#addin nuget:?package=Vanara.PInvoke.User32&version=4.0.1

// Install Vanara.PInvoke.User32 as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.User32&version=4.0.1

Vanara

Vanara.PInvoke.User32 NuGet Package

Version Build status

PInvoke API (methods, structures and constants) imported from Windows User32.dll.

What is Vanara?

Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

Issues?

First check if it's already fixed by trying the AppVeyor build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.User32

Functions Enumerations Structures
ActivateKeyboardLayout AddClipboardFormatListener AdjustWindowRect AdjustWindowRectEx AdjustWindowRectExForDpi AllowSetForegroundWindow AnimateWindow AnyPopup AppendMenuA AppendMenuW AreDpiAwarenessContextsEqual ArrangeIconicWindows AttachThreadInput BeginDeferWindowPos BeginPaint BlockInput BringWindowToTop BroadcastSystemMessage BroadcastSystemMessageEx CalculatePopupWindowPosition CallMsgFilter CallNextHookEx CallWindowProc CascadeWindows ChangeClipboardChain ChangeDisplaySettings ChangeDisplaySettingsEx ChangeWindowMessageFilter ChangeWindowMessageFilterEx CharToOem CharToOemBuff CheckDlgButton CheckMenuItem CheckMenuRadioItem CheckRadioButton ChildWindowFromPoint ChildWindowFromPointEx ClientToScreen ClipCursor CloseClipboard CloseDesktop CloseGestureInfoHandle CloseTouchInputHandle CloseWindow CloseWindowStation CopyAcceleratorTableA CopyAcceleratorTableW CopyIcon CopyImage CopyRect CountClipboardFormats CreateAcceleratorTable CreateCaret CreateCursor CreateDesktop CreateDesktopExA CreateDesktopExW CreateDialogIndirectParam CreateDialogParam CreateIcon CreateIconFromResource CreateIconFromResourceEx CreateIconIndirect CreateMenu CreatePopupMenu CreateSyntheticPointerDevice CreateWindowEx CreateWindowStation DefDlgProc DeferWindowPos DefFrameProc DefMDIChildProc DefRawInputProc DefWindowProc DeleteMenu DeregisterShellHookWindow DestroyAcceleratorTable DestroyCaret DestroyCursor DestroyIcon DestroyMenu DestroySyntheticPointerDevice DestroyWindow DialogBoxIndirectParam DialogBoxParam DisableProcessWindowsGhosting DispatchMessage DisplayConfigGetDeviceInfo DisplayConfigSetDeviceInfo DlgDirList DlgDirListComboBox DlgDirSelectComboBoxEx DlgDirSelectEx DragDetect DrawAnimatedRects DrawCaption DrawEdge DrawFocusRect DrawFrameControl DrawIcon DrawIconEx DrawMenuBar DrawState DrawText DrawTextEx EmptyClipboard EnableMenuItem EnableMouseInPointer EnableNonClientDpiScaling EnableScrollBar EnableWindow EndDeferWindowPos EndDialog EndMenu EndPaint EndTask EnumChildWindows EnumClipboardFormats EnumDesktops EnumDesktopWindows EnumDisplayDevices EnumDisplayMonitors EnumDisplaySettings EnumDisplaySettingsEx EnumPropsA EnumPropsEx EnumPropsW EnumThreadWindows EnumWindows EnumWindowStations EqualRect EvaluateProximityToPolygon EvaluateProximityToRect ExcludeUpdateRgn ExitWindowsEx FillRect FindWindow FindWindowEx FlashWindow FlashWindowEx FrameRect FreeDDElParam GetActiveWindow GetAltTabInfo GetAncestor GetAsyncKeyState GetAutoRotationState GetAwarenessFromDpiAwarenessContext GetCapture GetCaretBlinkTime GetCaretPos GetClassInfo GetClassInfoEx GetClassLong GetClassLongPtr GetClassName GetClassWord GetClientRect GetClipboardData GetClipboardFormatNameA GetClipboardFormatNameW GetClipboardOwner GetClipboardSequenceNumber GetClipboardViewer GetClipCursor GetCurrentInputMessageSource GetCursor GetCursorInfo GetCursorPos GetDC GetDCEx GetDesktopWindow GetDialogBaseUnits GetDialogControlDpiChangeBehavior GetDialogDpiChangeBehavior GetDisplayAutoRotationPreferences GetDisplayConfigBufferSizes GetDlgCtrlID GetDlgItem GetDlgItemInt GetDlgItemText GetDoubleClickTime GetDpiForSystem GetDpiForWindow GetDpiFromDpiAwarenessContext GetFocus GetForegroundWindow GetGestureConfig GetGestureExtraArgs GetGestureInfo GetGuiResources GetGUIThreadInfo GetIconInfo GetIconInfoEx GetInputState GetKBCodePage GetKeyboardLayout GetKeyboardLayoutList GetKeyboardLayoutName GetKeyboardState GetKeyboardType GetKeyNameText GetKeyState GetLastActivePopup GetLastInputInfo GetLayeredWindowAttributes GetListBoxInfo GetMenu GetMenuBarInfo GetMenuCheckMarkDimensions GetMenuContextHelpId GetMenuDefaultItem GetMenuInfo GetMenuItemCount GetMenuItemID GetMenuItemInfoA GetMenuItemInfoW GetMenuItemRect GetMenuState GetMenuString GetMessage GetMessageExtraInfo GetMessagePos GetMessageTime GetMonitorInfo GetMouseMovePointsEx GetNextDlgGroupItem GetNextDlgTabItem GetOpenClipboardWindow GetParent GetPhysicalCursorPos GetPointerCursorId GetPointerDevice GetPointerDeviceCursors GetPointerDeviceProperties GetPointerDeviceRects GetPointerDevices GetPointerFrameInfo GetPointerFrameInfoHistory GetPointerFramePenInfo GetPointerFramePenInfoHistory GetPointerFrameTouchInfo GetPointerFrameTouchInfoHistory GetPointerInfo GetPointerInfoHistory GetPointerInputTransform GetPointerPenInfo GetPointerPenInfoHistory GetPointerTouchInfo GetPointerTouchInfoHistory GetPointerType GetPriorityClipboardFormat GetProcessDefaultLayout GetProcessWindowStation GetProp GetQueueStatus GetRawInputBuffer GetRawInputData GetRawInputDeviceInfo GetRawInputDeviceList GetRawPointerDeviceData GetRegisteredRawInputDevices GetScrollBarInfo GetScrollInfo GetScrollPos GetScrollRange GetShellWindow GetSubMenu GetSysColor GetSysColorBrush GetSystemDpiForProcess GetSystemMenu GetSystemMetrics GetSystemMetricsForDpi GetTabbedTextExtent GetThreadDesktop GetThreadDpiAwarenessContext GetThreadDpiHostingBehavior GetTitleBarInfo GetTopWindow GetTouchInputInfo GetUnpredictedMessagePos GetUpdatedClipboardFormats GetUpdateRect GetUpdateRgn GetUserObjectInformationA GetUserObjectInformationW GetUserObjectSecurity GetWindow GetWindowContextHelpId GetWindowDC GetWindowDisplayAffinity GetWindowDpiAwarenessContext GetWindowDpiHostingBehavior GetWindowFeedbackSetting GetWindowInfo GetWindowLong GetWindowLongPtr GetWindowModuleFileName GetWindowPlacement GetWindowRect GetWindowRgn GetWindowRgnBox GetWindowText GetWindowTextLength GetWindowThreadProcessId GrayString HideCaret HiliteMenuItem ImpersonateDdeClientWindow InflateRect InitializeTouchInjection InjectSyntheticPointerInput InjectTouchInput InSendMessage InSendMessageEx InsertMenu InsertMenuItem InternalGetWindowText IntersectRect InvalidateRect InvalidateRgn InvertRect IsChild IsClipboardFormatAvailable IsDialogMessage IsDlgButtonChecked IsGUIThread IsHungAppWindow IsIconic IsImmersiveProcess IsMenu IsMouseInPointerEnabled IsProcessDPIAware IsRectEmpty IsTouchWindow IsValidDpiAwarenessContext IsWindow IsWindowEnabled IsWindowRedirectedForPrint IsWindowUnicode IsWindowVisible IsWinEventHookInstalled IsWow64Message IsZoomed keybd_event KillTimer LoadAcceleratorsA LoadAcceleratorsW LoadBitmap LoadCursor LoadCursorFromFileA LoadCursorFromFileW LoadIcon LoadImage LoadKeyboardLayout LoadMenu LoadMenuIndirect LoadString LockSetForegroundWindow LockWindowUpdate LockWorkStation LogicalToPhysicalPoint LogicalToPhysicalPointForPerMonitorDPI LookupIconIdFromDirectory LookupIconIdFromDirectoryEx MapDialogRect MapVirtualKey MapVirtualKeyEx MapWindowPoints MB_GetString MenuItemFromPoint MessageBeep MessageBox MessageBoxIndirect MessageBoxTimeoutA MessageBoxTimeoutW ModifyMenu MonitorFromPoint MonitorFromRect MonitorFromWindow mouse_event MoveWindow MsgWaitForMultipleObjects MsgWaitForMultipleObjectsEx NotifyWinEvent OemKeyScan OemToChar OemToCharBuff OffsetRect OpenClipboard OpenDesktop OpenIcon OpenInputDesktop OpenWindowStation PackDDElParam PackTouchHitTestingProximityEvaluation PaintDesktop PeekMessage PhysicalToLogicalPoint PhysicalToLogicalPointForPerMonitorDPI PostMessage PostQuitMessage PostThreadMessage PrintWindow PrivateExtractIcons PtInRect QueryDisplayConfig RealChildWindowFromPoint RealGetWindowClass RedrawWindow RegisterClass RegisterClassEx RegisterClipboardFormat RegisterDeviceNotification RegisterForTooltipDismissNotification RegisterHotKey RegisterPointerDeviceNotifications RegisterPointerInputTarget RegisterPointerInputTargetEx RegisterPowerSettingNotification RegisterRawInputDevices RegisterShellHookWindow RegisterSuspendResumeNotification RegisterTouchHitTestingWindow RegisterTouchWindow RegisterWindowMessage ReleaseCapture ReleaseDC RemoveClipboardFormatListener RemoveMenu RemoveProp ReplyMessage ReuseDDElParam ScreenToClient ScrollDC ScrollWindow ScrollWindowEx SendDlgItemMessage SendInput SendMessage SendMessageCallbackA SendMessageCallbackW SendMessageTimeout SendNotifyMessage SetActiveWindow SetAdditionalForegroundBoostProcesses SetCapture SetCaretBlinkTime SetCaretPos SetClassLong SetClassLongPtr SetClassWord SetClipboardData SetClipboardViewer SetCoalescableTimer SetCursor SetCursorPos SetDialogControlDpiChangeBehavior SetDialogDpiChangeBehavior SetDisplayAutoRotationPreferences SetDisplayConfig SetDlgItemInt SetDlgItemText SetDoubleClickTime SetFocus SetForegroundWindow SetGestureConfig SetKeyboardState SetLastErrorEx SetLayeredWindowAttributes SetMenu SetMenuContextHelpId SetMenuDefaultItem SetMenuInfo SetMenuItemBitmaps SetMenuItemInfo SetMessageExtraInfo SetParent SetPhysicalCursorPos SetProcessDefaultLayout SetProcessDPIAware SetProcessDpiAwarenessContext SetProcessRestrictionExemption SetProcessWindowStation SetProp SetRect SetRectEmpty SetScrollInfo SetScrollPos SetScrollRange SetSysColors SetSystemCursor SetThreadCursorCreationScaling SetThreadDesktop SetThreadDpiAwarenessContext SetThreadDpiHostingBehavior SetTimer SetUserObjectInformation SetUserObjectSecurity SetWindowContextHelpId SetWindowDisplayAffinity SetWindowFeedbackSetting SetWindowLong SetWindowLongPtr SetWindowPlacement SetWindowPos SetWindowRgn SetWindowsHookExA SetWindowsHookExW SetWindowText SetWinEventHook ShowCaret ShowCursor ShowOwnedPopups ShowScrollBar ShowWindow ShowWindowAsync ShutdownBlockReasonCreate ShutdownBlockReasonDestroy ShutdownBlockReasonQuery SkipPointerFrameMessages SoundSentry SubtractRect SwapMouseButton SwitchDesktop SwitchToThisWindow SystemParametersInfo SystemParametersInfoForDpi TabbedTextOut TileWindows ToAscii ToAsciiEx ToUnicode ToUnicodeEx TrackMouseEvent TrackPopupMenu TrackPopupMenuEx TranslateAccelerator TranslateMDISysAccel TranslateMessage UnhookWindowsHookEx UnhookWinEvent UnionRect UnloadKeyboardLayout UnpackDDElParam UnregisterClass UnregisterDeviceNotification UnregisterHotKey UnregisterPointerInputTarget UnregisterPowerSettingNotification UnregisterSuspendResumeNotification UnregisterTouchWindow UpdateLayeredWindow UpdateLayeredWindowIndirect UpdateWindow UserHandleGrantAccess ValidateRect ValidateRgn VkKeyScan VkKeyScanEx WaitForInputIdle WaitMessage WindowFromDC WindowFromPhysicalPoint WindowFromPoint WinHelp WINNLSEnableIME VP_COMMAND VP_CP_CMD VP_CP_TYPE VP_FLAGS VP_MODE VP_TV APPCOMMAND ENDSESSION FAPPCOMMAND GIDC INPUTLANGCHANGE ISC MND MNGO MSGF NOTIFYFORMAT PRF RIM_CODE SBCMD UIS UISF WindowMessage WM_ACTIVATE_WPARAM WM_ICON_WPARAM WM_MOUSEACTIVATE_RETURN WM_SHOWWINDOW_LPARAM WM_SIZE_WPARAM WMSZ WTS WindowStyles WindowStylesEx FVIRT ButtonMessage ButtonNotification ButtonStateFlags ButtonStyle ClipboardNotificationMessage StandardClipboardFormat ComboBoxInfoState ComboBoxMessage ComboBoxNotification ComboBoxStyle ORIENTATION_PREFERENCE AR_STATE FR TOOLTIP_DISMISS_FLAGS CursorState OCR DBT_DEVTYPE DBTF DEVICE_NOTIFY DeviceBroadcastEvent LOCKF LOCKP CreateDesktopFlags CreateWindowStationFlags UserObjectInformationType DDL DialogBoxStyles DLGC QDC SDC EC EC_ENDOFLINE EC_SEARCHWEB_ENTRYPOINT EditMessage EditNotification EditStyle EditStylesEx EIMES EMSIS WB ChangeDisplaySettingsFlags CopyImageOptions DCX GR HitTestValues WindowLongFlags HelpCmd DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS DIALOG_DPI_CHANGE_BEHAVIORS DPI_AWARENESS DPI_HOSTING_BEHAVIOR HC HCBT HookType WINEVENT DrawIconExFlags INPUT_MESSAGE_DEVICE_TYPE INPUT_MESSAGE_ORIGIN_ID INPUTTYPE MouseState RI_KEY RI_MOUSE RID RIDEV RIDI RIM_TYPE HOTKEYF HotKeyModifiers KEYEVENTF KLF MAPVK VK ListBoxMessage ListBoxNotification ListBoxReturnValue ListBoxStyle GetMenuDefaultItemFlags MenuFlags MenuInfoMember MenuInfoStyle MenuItemInfoMask MenuItemState MenuItemType MNGOF BSF BSM ISMEX MWMO PM QS SMTO EDD EDS MonitorFlags MonitorInfoFlags GMMP MouseActivateCode MOUSEEVENTF TME ODA ODS ODT BorderFlags BorderStyles3D DrawCaptionFlags DrawStateFlags FrameControlState FrameControlType IDANI RedrawWindowFlags PEN_FLAGS PEN_MASK POINTER_BUTTON_CHANGE_TYPE POINTER_DEVICE_CURSOR_TYPE POINTER_DEVICE_TYPE POINTER_FEEDBACK_MODE POINTER_FLAGS POINTER_INPUT_TYPE TOUCH_FLAGS TOUCH_MASK PowerBroadcastType LoadImageOptions LoadImageType ESB_FLAGS SB ScrollWindowFlags SIF StaticMessage StaticNotification StaticStyle ARW ATF ContactVisualization ExitWindowsFlags FKF GestureVisualization HANDEDNESS HELPINFOCONTEXT HFC MB_FLAGS MB_RESULT MKF MouseWheelRouting PenArbitrationType PenVisualization SERKF SKF SPI SPIF SSF SSGF SSTF SSWF SystemMetric TKF Gesture GCF GF GID TOUCH_FEEDBACK TOUCH_HIT_TESTING TOUCHEVENTF TOUCHINPUTMASKF TWF AnimateWindowFlags ChildWindowSkipOptions DefaultLayout FEEDBACK_TYPE FLASHW GetClassLongFlag GCW GetAncestorFlag GetWindowCmd GUIThreadInfoFlags GWFS LayeredWindowAttributes LSFW MdiTileFlags MessageFilterExAction MessageFilterFlag MessageFilterInformation ObjectState PW SetWindowPosFlags SysCommand TrackPopupMenuFlags UpdateLayeredWindowFlags WindowClassStyles WindowDisplayAffinity WindowPlacementFlags ICONINFO VIDEOPARAMETERS NMHDR COPYDATASTRUCT MDICREATESTRUCT MOUSEWHEEL SIZES STYLESTRUCT UISTATE WM_HOTKEY_LPARAM WM_KEY_LPARAM WM_SCROLL_LPARAM WM_SETCURSOR_LPARAM ACCEL METAFILEPICT COMBOBOXINFO CmdNotifyWParam CURSORINFO DEV_BROADCAST_DEVICEINTERFACE DEV_BROADCAST_DEVNODE DEV_BROADCAST_HANDLE DEV_BROADCAST_HDR DEV_BROADCAST_NET DEV_BROADCAST_OEM DEV_BROADCAST_PORT DEV_BROADCAST_USERDEFINED DEV_BROADCAST_VOLUME HDEVNOTIFY VolLockBroadcast USEROBJECTFLAGS DLGITEMTEMPLATE DLGTEMPLATE EDITBALLOONTIP NMSEARCHWEB MINMAXINFO WINDOWPOS DRAWTEXTPARAMS HELPWININFO MULTIKEYHELP DPI_AWARENESS_CONTEXT CBT_CREATEWND CBTACTIVATESTRUCT CWPRETSTRUCT CWPSTRUCT DEBUGHOOKINFO EVENTMSG HHOOK HWINEVENTHOOK KBDLLHOOKSTRUCT MOUSEHOOKSTRUCT MOUSEHOOKSTRUCTEX MSLLHOOKSTRUCT ICONINFOEX HARDWAREINPUT HRAWINPUT INPUT INPUT_MESSAGE_SOURCE LASTINPUTINFO MOUSEINPUT RAWHID RAWINPUT RAWINPUTDEVICE RAWINPUTDEVICELIST RAWINPUTHEADER RAWKEYBOARD RAWMOUSE RID_DEVICE_INFO RID_DEVICE_INFO_HID RID_DEVICE_INFO_KEYBOARD RID_DEVICE_INFO_MOUSE HKL KEYBDINPUT MDINEXTMENU MENUBARINFO MENUEX_TEMPLATE_HEADER MENUEX_TEMPLATE_ITEM MENUGETOBJECTINFO MENUINFO MENUITEMINFO MENUITEMTEMPLATE MENUITEMTEMPLATEHEADER TPMPARAMS BSMINFO MONITORINFO MONITORINFOEX MOUSEMOVEPOINT TRACKMOUSEEVENT COMPAREITEMSTRUCT DELETEITEMSTRUCT DRAWITEMSTRUCT MEASUREITEMSTRUCT PAINTSTRUCT HSYNTHETICPOINTERDEVICE INPUT_TRANSFORM POINTER_DEVICE_CURSOR_INFO POINTER_DEVICE_INFO POINTER_DEVICE_PROPERTY POINTER_INFO POINTER_PEN_INFO POINTER_TOUCH_INFO POINTER_TYPE_INFO POWERBROADCAST_SETTING GRPICONDIR GRPICONDIRENTRY SCROLLBARINFO SCROLLINFO ACCESSTIMEOUT ANIMATIONINFO AUDIODESCRIPTION FILTERKEYS HELPINFO HIGHCONTRAST ICONMETRICS MINIMIZEDMETRICS MOUSEKEYS MSGBOXPARAMS NONCLIENTMETRICS SERIALKEYS SOUNDSENTRY STICKYKEYS TOGGLEKEYS TOUCHPREDICTIONPARAMETERS GESTURECONFIG GESTUREINFO GESTURENOTIFYSTRUCT HGESTUREINFO HTOUCHINPUT TOUCH_HIT_TESTING_INPUT TOUCH_HIT_TESTING_PROXIMITY_EVALUATION TOUCHINPUT ALTTABINFO CHANGEFILTERSTRUCT CREATESTRUCT FLASHWINFO GUITHREADINFO TITLEBARINFO UPDATELAYEREDWINDOWINFO WINDOWINFO WINDOWPLACEMENT WNDCLASS WNDCLASSEX DATA
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (24)

Showing the top 5 NuGet packages that depend on Vanara.PInvoke.User32:

Package Downloads
Vanara.PInvoke.ComCtl32 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

PInvoke API (methods, structures and constants) imported from Windows ComCtl32.dll.

NetDimension.NanUI

Easily buid powerful WinForm applications with HTML, CSS and JavaScript.

Vanara.PInvoke.UxTheme The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

PInvoke API (methods, structures and constants) imported from Windows UxTheme.dll.

Vanara.SystemServices The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Classes for system related items derived from the Vanara PInvoke libraries. Includes extensions for Process (privileges and elavation), FileInfo (compression info), Shared Network Drives and Devices, and ServiceController (SetStartType) that pull extended information through native API calls.

Vanara.Windows.Forms The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Classes for user interface related items derived from the Vanara PInvoke libraries. Includes extensions for almost all common controls to give post Vista capabilities, WinForms controls (panel, commandlink, enhanced combo boxes, IPAddress, split button, trackbar and themed controls), shutdown/restart/lock control, buffered painting, resource files, access control editor, simplifed designer framework for Windows.Forms.

GitHub repositories (15)

Showing the top 5 popular GitHub repositories that depend on Vanara.PInvoke.User32:

Repository Stars
microsoft/PowerToys
Windows system utilities to maximize productivity
XuanchenLin/NanUI
NanUI is an open source .NET project for developers who want to create Windows desktop applications with HTML, CSS and JavaScript.
glzr-io/glazewm
GlazeWM is a tiling window manager for Windows inspired by i3 and Polybar.
babalae/better-genshin-impact
📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 - UI Automation Testing Tools For Genshin Impact
ashmind/SharpLab
.NET language playground
Version Downloads Last updated
4.0.1 2,847 4/30/2024
4.0.0 4,173 3/29/2024
4.0.0-beta2 630 1/22/2024
4.0.0-beta 984 11/20/2023
3.4.17 32,094 10/18/2023
3.4.16 20,176 8/7/2023
3.4.15 49,622 5/18/2023
3.4.14 31,957 4/15/2023
3.4.13 12,383 2/4/2023
3.4.12 12,482 1/15/2023
3.4.11 25,335 11/15/2022
3.4.10 8,844 10/25/2022
3.4.9 7,092 10/3/2022
3.4.8 9,063 9/16/2022
3.4.7 5,691 9/3/2022
3.4.6 8,699 8/7/2022
3.4.5 11,489 7/17/2022
3.4.4 6,551 7/5/2022
3.4.3 9,393 6/14/2022
3.4.2 8,470 5/13/2022
3.4.1 6,402 5/5/2022
3.4.0 11,500 3/14/2022
3.3.15 38,988 12/27/2021
3.3.14 7,640 10/26/2021
3.3.13 3,486 9/30/2021
3.3.12 9,050 8/30/2021
3.3.11 10,769 7/22/2021
3.3.10 5,984 6/4/2021
3.3.9 5,035 5/7/2021
3.3.8 6,695 4/7/2021
3.3.7 4,733 3/24/2021
3.3.6 2,870 3/19/2021
3.3.5 4,559 3/1/2021
3.3.4 4,371 2/11/2021
3.3.3 6,045 2/3/2021
3.3.2 2,552 1/21/2021
3.3.1 5,905 1/20/2021
3.3.0 6,394 11/20/2020
3.2.21 2,037 11/13/2020
3.2.20 4,996 11/8/2020
3.2.19 6,163 10/23/2020
3.2.18 1,930 10/21/2020
3.2.17 4,046 9/20/2020
3.2.16 2,202 9/7/2020
3.2.15 2,109 8/30/2020
3.2.14 2,192 8/20/2020
3.2.13 2,534 7/27/2020
3.2.12 2,285 7/13/2020
3.2.11 2,440 6/28/2020
3.2.10 2,337 6/14/2020
3.2.9 2,373 6/3/2020
3.2.7 2,963 5/4/2020
3.2.6 2,136 4/21/2020
3.2.5 2,067 4/15/2020
3.2.4 2,025 4/12/2020
3.2.3 2,065 4/1/2020
3.2.2 2,018 3/24/2020
3.2.1 2,053 3/17/2020
3.2.0 2,271 2/27/2020
3.1.9 2,267 1/17/2020
3.1.8 2,221 1/13/2020
3.1.7 2,038 1/6/2020
3.1.6 2,071 12/12/2019
3.1.5 2,179 11/26/2019
3.1.4 2,266 11/25/2019
3.1.3 2,239 11/8/2019
3.1.2 2,024 11/4/2019
3.1.1 3,063 10/17/2019
3.1.0 2,072 10/3/2019
3.0.1 2,003 9/20/2019
3.0.0 1,835 8/27/2019
2.3.11 2,148 6/9/2019
2.3.10 930 6/5/2019
2.3.9 901 5/26/2019
2.3.8 921 5/13/2019
2.3.7 928 4/24/2019
2.3.6 877 4/17/2019
2.3.5 863 4/10/2019
2.3.4 935 3/9/2019
2.3.3 875 3/8/2019
2.3.2 909 2/28/2019
2.3.1 887 2/25/2019
2.3.0 861 2/22/2019
2.2.1 930 2/12/2019
2.2.0 916 2/1/2019
2.1.2 8,130 1/14/2019
2.1.0 978 12/15/2018
2.0.1 968 12/7/2018
2.0.0 1,000 11/28/2018
1.1.0 1,549 9/10/2018
1.0.18 1,175 8/10/2018
1.0.17 1,126 7/30/2018
1.0.16 1,475 6/29/2018
1.0.15 1,169 6/27/2018
1.0.14 1,223 6/8/2018
1.0.13 1,191 6/6/2018
1.0.12 1,283 4/5/2018
1.0.11 1,228 4/4/2018
1.0.10 1,192 3/27/2018
1.0.9 1,161 3/26/2018
1.0.8 1,226 2/7/2018
1.0.7 1,237 1/27/2018
1.0.6 1,288 1/8/2018
1.0.5 1,265 12/28/2017
1.0.4 1,249 12/15/2017
1.0.3 963 12/8/2017
1.0.2 975 11/30/2017
1.0.1 1,099 11/28/2017

Currently implements:

Functions
ActivateKeyboardLayout AddClipboardFormatListener AdjustWindowRect AdjustWindowRectEx AdjustWindowRectExForDpi AllowSetForegroundWindow AnimateWindow AnyPopup AppendMenuA AppendMenuW AreDpiAwarenessContextsEqual ArrangeIconicWindows AttachThreadInput BeginDeferWindowPos BeginPaint BlockInput BringWindowToTop BroadcastSystemMessage BroadcastSystemMessageEx CalculatePopupWindowPosition CallMsgFilter CallNextHookEx CallWindowProc CascadeWindows ChangeClipboardChain ChangeDisplaySettings ChangeDisplaySettingsEx ChangeWindowMessageFilter ChangeWindowMessageFilterEx CharToOem CharToOemBuff CheckDlgButton CheckMenuItem CheckMenuRadioItem CheckRadioButton ChildWindowFromPoint ChildWindowFromPointEx ClientToScreen ClipCursor CloseClipboard CloseDesktop CloseGestureInfoHandle CloseTouchInputHandle CloseWindow CloseWindowStation CopyAcceleratorTableA CopyAcceleratorTableW CopyIcon CopyImage CopyRect CountClipboardFormats CreateAcceleratorTable CreateCaret CreateCursor CreateDesktop CreateDesktopExA CreateDesktopExW CreateDialogIndirectParam CreateDialogParam CreateIcon CreateIconFromResource CreateIconFromResourceEx CreateIconIndirect CreateMenu CreatePopupMenu CreateSyntheticPointerDevice CreateWindowEx CreateWindowStation DefDlgProc DeferWindowPos DefFrameProc DefMDIChildProc DefRawInputProc DefWindowProc DeleteMenu DeregisterShellHookWindow DestroyAcceleratorTable DestroyCaret DestroyCursor DestroyIcon DestroyMenu DestroySyntheticPointerDevice DestroyWindow DialogBoxIndirectParam DialogBoxParam DisableProcessWindowsGhosting DispatchMessage DisplayConfigGetDeviceInfo DisplayConfigSetDeviceInfo DlgDirList DlgDirListComboBox DlgDirSelectComboBoxEx DlgDirSelectEx DragDetect DrawAnimatedRects DrawCaption DrawEdge DrawFocusRect DrawFrameControl DrawIcon DrawIconEx DrawMenuBar DrawState DrawText DrawTextEx EmptyClipboard EnableMenuItem EnableMouseInPointer EnableNonClientDpiScaling EnableScrollBar EnableWindow EndDeferWindowPos EndDialog EndMenu EndPaint EndTask EnumChildWindows EnumClipboardFormats EnumDesktops EnumDesktopWindows EnumDisplayDevices EnumDisplayMonitors EnumDisplaySettings EnumDisplaySettingsEx EnumPropsA EnumPropsEx EnumPropsW EnumThreadWindows EnumWindows EnumWindowStations EqualRect EvaluateProximityToPolygon EvaluateProximityToRect ExcludeUpdateRgn ExitWindowsEx FillRect FindWindow FindWindowEx FlashWindow FlashWindowEx FrameRect FreeDDElParam GetActiveWindow GetAltTabInfo GetAncestor GetAsyncKeyState GetAutoRotationState GetAwarenessFromDpiAwarenessContext GetCapture GetCaretBlinkTime GetCaretPos GetClassInfo GetClassInfoEx GetClassLong GetClassLongPtr GetClassName GetClassWord GetClientRect GetClipboardData GetClipboardFormatNameA GetClipboardFormatNameW GetClipboardOwner GetClipboardSequenceNumber GetClipboardViewer GetClipCursor GetCurrentInputMessageSource GetCursor GetCursorInfo GetCursorPos GetDC GetDCEx GetDesktopWindow GetDialogBaseUnits GetDialogControlDpiChangeBehavior GetDialogDpiChangeBehavior GetDisplayAutoRotationPreferences GetDisplayConfigBufferSizes GetDlgCtrlID GetDlgItem GetDlgItemInt GetDlgItemText GetDoubleClickTime GetDpiForSystem GetDpiForWindow GetDpiFromDpiAwarenessContext GetFocus GetForegroundWindow GetGestureConfig GetGestureExtraArgs GetGestureInfo GetGuiResources GetGUIThreadInfo GetIconInfo GetIconInfoEx GetInputState GetKBCodePage GetKeyboardLayout GetKeyboardLayoutList GetKeyboardLayoutName GetKeyboardState GetKeyboardType GetKeyNameText GetKeyState GetLastActivePopup GetLastInputInfo GetLayeredWindowAttributes GetListBoxInfo GetMenu GetMenuBarInfo GetMenuCheckMarkDimensions GetMenuContextHelpId GetMenuDefaultItem GetMenuInfo GetMenuItemCount GetMenuItemID GetMenuItemInfoA GetMenuItemInfoW GetMenuItemRect GetMenuState GetMenuString GetMessage GetMessageExtraInfo GetMessagePos GetMessageTime GetMonitorInfo GetMouseMovePointsEx GetNextDlgGroupItem GetNextDlgTabItem GetOpenClipboardWindow GetParent GetPhysicalCursorPos GetPointerCursorId GetPointerDevice GetPointerDeviceCursors GetPointerDeviceProperties GetPointerDeviceRects GetPointerDevices GetPointerFrameInfo GetPointerFrameInfoHistory GetPointerFramePenInfo GetPointerFramePenInfoHistory GetPointerFrameTouchInfo GetPointerFrameTouchInfoHistory GetPointerInfo GetPointerInfoHistory GetPointerInputTransform GetPointerPenInfo GetPointerPenInfoHistory GetPointerTouchInfo GetPointerTouchInfoHistory GetPointerType GetPriorityClipboardFormat GetProcessDefaultLayout GetProcessWindowStation GetProp GetQueueStatus GetRawInputBuffer GetRawInputData GetRawInputDeviceInfo GetRawInputDeviceList GetRawPointerDeviceData GetRegisteredRawInputDevices GetScrollBarInfo GetScrollInfo GetScrollPos GetScrollRange GetShellWindow GetSubMenu GetSysColor GetSysColorBrush GetSystemDpiForProcess GetSystemMenu GetSystemMetrics GetSystemMetricsForDpi GetTabbedTextExtent GetThreadDesktop GetThreadDpiAwarenessContext GetThreadDpiHostingBehavior GetTitleBarInfo GetTopWindow GetTouchInputInfo GetUnpredictedMessagePos GetUpdatedClipboardFormats GetUpdateRect GetUpdateRgn GetUserObjectInformationA GetUserObjectInformationW GetUserObjectSecurity GetWindow GetWindowContextHelpId GetWindowDC GetWindowDisplayAffinity GetWindowDpiAwarenessContext GetWindowDpiHostingBehavior GetWindowFeedbackSetting GetWindowInfo GetWindowLong GetWindowLongPtr GetWindowModuleFileName GetWindowPlacement GetWindowRect GetWindowRgn GetWindowRgnBox GetWindowText GetWindowTextLength GetWindowThreadProcessId GrayString HideCaret HiliteMenuItem ImpersonateDdeClientWindow InflateRect InitializeTouchInjection InjectSyntheticPointerInput InjectTouchInput InSendMessage InSendMessageEx InsertMenu InsertMenuItem InternalGetWindowText IntersectRect InvalidateRect InvalidateRgn InvertRect IsChild IsClipboardFormatAvailable IsDialogMessage IsDlgButtonChecked IsGUIThread IsHungAppWindow IsIconic IsImmersiveProcess IsMenu IsMouseInPointerEnabled IsProcessDPIAware IsRectEmpty IsTouchWindow IsValidDpiAwarenessContext IsWindow IsWindowEnabled IsWindowRedirectedForPrint IsWindowUnicode IsWindowVisible IsWinEventHookInstalled IsWow64Message IsZoomed keybd_event KillTimer LoadAcceleratorsA LoadAcceleratorsW LoadBitmap LoadCursor LoadCursorFromFileA LoadCursorFromFileW LoadIcon LoadImage LoadKeyboardLayout LoadMenu LoadMenuIndirect LoadString LockSetForegroundWindow LockWindowUpdate LockWorkStation LogicalToPhysicalPoint LogicalToPhysicalPointForPerMonitorDPI LookupIconIdFromDirectory LookupIconIdFromDirectoryEx MapDialogRect MapVirtualKey MapVirtualKeyEx MapWindowPoints MB_GetString MenuItemFromPoint MessageBeep MessageBox MessageBoxIndirect MessageBoxTimeoutA MessageBoxTimeoutW ModifyMenu MonitorFromPoint MonitorFromRect MonitorFromWindow mouse_event MoveWindow MsgWaitForMultipleObjects MsgWaitForMultipleObjectsEx NotifyWinEvent OemKeyScan OemToChar OemToCharBuff OffsetRect OpenClipboard OpenDesktop OpenIcon OpenInputDesktop OpenWindowStation PackDDElParam PackTouchHitTestingProximityEvaluation PaintDesktop PeekMessage PhysicalToLogicalPoint PhysicalToLogicalPointForPerMonitorDPI PostMessage PostQuitMessage PostThreadMessage PrintWindow PrivateExtractIcons PtInRect QueryDisplayConfig RealChildWindowFromPoint RealGetWindowClass RedrawWindow RegisterClass RegisterClassEx RegisterClipboardFormat RegisterDeviceNotification RegisterForTooltipDismissNotification RegisterHotKey RegisterPointerDeviceNotifications RegisterPointerInputTarget RegisterPointerInputTargetEx RegisterPowerSettingNotification RegisterRawInputDevices RegisterShellHookWindow RegisterSuspendResumeNotification RegisterTouchHitTestingWindow RegisterTouchWindow RegisterWindowMessage ReleaseCapture ReleaseDC RemoveClipboardFormatListener RemoveMenu RemoveProp ReplyMessage ReuseDDElParam ScreenToClient ScrollDC ScrollWindow ScrollWindowEx SendDlgItemMessage SendInput SendMessage SendMessageCallbackA SendMessageCallbackW SendMessageTimeout SendNotifyMessage SetActiveWindow SetAdditionalForegroundBoostProcesses SetCapture SetCaretBlinkTime SetCaretPos SetClassLong SetClassLongPtr SetClassWord SetClipboardData SetClipboardViewer SetCoalescableTimer SetCursor SetCursorPos SetDialogControlDpiChangeBehavior SetDialogDpiChangeBehavior SetDisplayAutoRotationPreferences SetDisplayConfig SetDlgItemInt SetDlgItemText SetDoubleClickTime SetFocus SetForegroundWindow SetGestureConfig SetKeyboardState SetLastErrorEx SetLayeredWindowAttributes SetMenu SetMenuContextHelpId SetMenuDefaultItem SetMenuInfo SetMenuItemBitmaps SetMenuItemInfo SetMessageExtraInfo SetParent SetPhysicalCursorPos SetProcessDefaultLayout SetProcessDPIAware SetProcessDpiAwarenessContext SetProcessRestrictionExemption SetProcessWindowStation SetProp SetRect SetRectEmpty SetScrollInfo SetScrollPos SetScrollRange SetSysColors SetSystemCursor SetThreadCursorCreationScaling SetThreadDesktop SetThreadDpiAwarenessContext SetThreadDpiHostingBehavior SetTimer SetUserObjectInformation SetUserObjectSecurity SetWindowContextHelpId SetWindowDisplayAffinity SetWindowFeedbackSetting SetWindowLong SetWindowLongPtr SetWindowPlacement SetWindowPos SetWindowRgn SetWindowsHookExA SetWindowsHookExW SetWindowText SetWinEventHook ShowCaret ShowCursor ShowOwnedPopups ShowScrollBar ShowWindow ShowWindowAsync ShutdownBlockReasonCreate ShutdownBlockReasonDestroy ShutdownBlockReasonQuery SkipPointerFrameMessages SoundSentry SubtractRect SwapMouseButton SwitchDesktop SwitchToThisWindow SystemParametersInfo SystemParametersInfoForDpi TabbedTextOut TileWindows ToAscii ToAsciiEx ToUnicode ToUnicodeEx TrackMouseEvent TrackPopupMenu TrackPopupMenuEx TranslateAccelerator TranslateMDISysAccel TranslateMessage UnhookWindowsHookEx UnhookWinEvent UnionRect UnloadKeyboardLayout UnpackDDElParam UnregisterClass UnregisterDeviceNotification UnregisterHotKey UnregisterPointerInputTarget UnregisterPowerSettingNotification UnregisterSuspendResumeNotification UnregisterTouchWindow UpdateLayeredWindow UpdateLayeredWindowIndirect UpdateWindow UserHandleGrantAccess ValidateRect ValidateRgn VkKeyScan VkKeyScanEx WaitForInputIdle WaitMessage WindowFromDC WindowFromPhysicalPoint WindowFromPoint WinHelp WINNLSEnableIME

Structures
ACCEL ACCESSTIMEOUT ALTTABINFO ANIMATIONINFO AUDIODESCRIPTION BSMINFO CBTACTIVATESTRUCT CBT_CREATEWND CHANGEFILTERSTRUCT CmdNotifyWParam COMBOBOXINFO COMPAREITEMSTRUCT COPYDATASTRUCT CREATESTRUCT CURSORINFO CWPRETSTRUCT CWPSTRUCT DATA DEBUGHOOKINFO DELETEITEMSTRUCT DEV_BROADCAST_DEVICEINTERFACE DEV_BROADCAST_DEVNODE DEV_BROADCAST_HANDLE DEV_BROADCAST_HDR DEV_BROADCAST_NET DEV_BROADCAST_OEM DEV_BROADCAST_PORT DEV_BROADCAST_USERDEFINED DEV_BROADCAST_VOLUME DLGITEMTEMPLATE DLGTEMPLATE DPI_AWARENESS_CONTEXT DRAWITEMSTRUCT DRAWTEXTPARAMS EDITBALLOONTIP EVENTMSG FILTERKEYS FLASHWINFO GESTURECONFIG GESTUREINFO GESTURENOTIFYSTRUCT GRPICONDIR GRPICONDIRENTRY GUITHREADINFO HARDWAREINPUT HDEVNOTIFY HELPINFO HELPWININFO HGESTUREINFO HHOOK HIGHCONTRAST HKL HRAWINPUT HSYNTHETICPOINTERDEVICE HTOUCHINPUT HWINEVENTHOOK ICONINFO ICONINFOEX ICONMETRICS INPUT INPUT_MESSAGE_SOURCE INPUT_TRANSFORM KBDLLHOOKSTRUCT KEYBDINPUT LASTINPUTINFO MDICREATESTRUCT MDINEXTMENU MEASUREITEMSTRUCT MENUBARINFO MENUEX_TEMPLATE_HEADER MENUEX_TEMPLATE_ITEM MENUGETOBJECTINFO MENUINFO MENUITEMINFO MENUITEMTEMPLATE MENUITEMTEMPLATEHEADER METAFILEPICT MINIMIZEDMETRICS MINMAXINFO MONITORINFO MONITORINFOEX MOUSEHOOKSTRUCT MOUSEHOOKSTRUCTEX MOUSEINPUT MOUSEKEYS MOUSEMOVEPOINT MOUSEWHEEL MSGBOXPARAMS MSLLHOOKSTRUCT MULTIKEYHELP NMHDR NMSEARCHWEB NONCLIENTMETRICS PAINTSTRUCT POINTER_DEVICE_CURSOR_INFO POINTER_DEVICE_INFO POINTER_DEVICE_PROPERTY POINTER_INFO POINTER_PEN_INFO POINTER_TOUCH_INFO POINTER_TYPE_INFO POWERBROADCAST_SETTING RAWHID RAWINPUT RAWINPUTDEVICE RAWINPUTDEVICELIST RAWINPUTHEADER RAWKEYBOARD RAWMOUSE RID_DEVICE_INFO RID_DEVICE_INFO_HID RID_DEVICE_INFO_KEYBOARD RID_DEVICE_INFO_MOUSE SCROLLBARINFO SCROLLINFO SERIALKEYS SIZES SOUNDSENTRY STICKYKEYS STYLESTRUCT TITLEBARINFO TOGGLEKEYS TOUCHINPUT TOUCHPREDICTIONPARAMETERS TOUCH_HIT_TESTING_INPUT TOUCH_HIT_TESTING_PROXIMITY_EVALUATION TPMPARAMS TRACKMOUSEEVENT UISTATE UPDATELAYEREDWINDOWINFO USEROBJECTFLAGS VIDEOPARAMETERS VolLockBroadcast WINDOWINFO WINDOWPLACEMENT WINDOWPOS WM_HOTKEY_LPARAM WM_KEY_LPARAM WM_SCROLL_LPARAM WM_SETCURSOR_LPARAM WNDCLASS WNDCLASSEX