user32 topic

Windows User APIs

Creates and manipulates the standard elements of the Windows user interface, such as the desktop, windows, and menus. Functions perform operations such as creating and managing windows, receiving window messages, displaying text in a window, and displaying message boxes.

Functions

ActivateKeyboardLayout(HKL hkl, ACTIVATE_KEYBOARD_LAYOUT_FLAGS flags) Win32Result<HKL> user32
Sets the input locale identifier (formerly called the keyboard layout handle) for the calling thread or the current process.
AddClipboardFormatListener(HWND hwnd) Win32Result<bool> user32
Places the given window in the system-maintained clipboard format listener list.
AdjustWindowRect(Pointer<RECT> lpRect, WINDOW_STYLE dwStyle, bool bMenu) Win32Result<bool> user32
Calculates the required size of the window rectangle, based on the desired client-rectangle size.
AdjustWindowRectEx(Pointer<RECT> lpRect, WINDOW_STYLE dwStyle, bool bMenu, WINDOW_EX_STYLE dwExStyle) Win32Result<bool> user32
Calculates the required size of the window rectangle, based on the desired size of the client rectangle.
AdjustWindowRectExForDpi(Pointer<RECT> lpRect, WINDOW_STYLE dwStyle, bool bMenu, WINDOW_EX_STYLE dwExStyle, int dpi) Win32Result<bool> user32
Calculates the required size of the window rectangle, based on the desired size of the client rectangle and the provided DPI.
AllowSetForegroundWindow(int dwProcessId) Win32Result<bool> user32
Enables the specified process to set the foreground window using the SetForegroundWindow function.
AnimateWindow(HWND hWnd, int dwTime, ANIMATE_WINDOW_FLAGS dwFlags) Win32Result<bool> user32
Enables you to produce special effects when showing or hiding windows.
AnyPopup() bool user32
Indicates whether an owned, visible, top-level pop-up, or overlapped window exists on the screen.
AppendMenu(HMENU hMenu, MENU_ITEM_FLAGS uFlags, int uIDNewItem, PCWSTR? lpNewItem) Win32Result<bool> user32
Appends a new item to the end of the specified menu bar, drop-down menu, submenu, or shortcut menu.
AreDpiAwarenessContextsEqual(DPI_AWARENESS_CONTEXT dpiContextA, DPI_AWARENESS_CONTEXT dpiContextB) bool user32
Determines whether two DPI_AWARENESS_CONTEXT values are identical.
ArrangeIconicWindows(HWND hWnd) Win32Result<int> user32
Arranges all the minimized (iconic) child windows of the specified parent window.
AttachThreadInput(int idAttach, int idAttachTo, bool fAttach) bool user32
Attaches or detaches the input processing mechanism of one thread to that of another thread.
BeginDeferWindowPos(int nNumWindows) Win32Result<HDWP> user32
Allocates memory for a multiple-window- position structure and returns the handle to the structure.
BeginPaint(HWND hWnd, Pointer<PAINTSTRUCT> lpPaint) HDC user32
Prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting.
BlockInput(bool fBlockIt) Win32Result<bool> user32
Blocks keyboard and mouse input events from reaching applications.
BringWindowToTop(HWND hWnd) Win32Result<bool> user32
Brings the specified window to the top of the Z order.
BroadcastSystemMessage(BROADCAST_SYSTEM_MESSAGE_FLAGS flags, Pointer<Uint32>? lpInfo, int msg, WPARAM wParam, LPARAM lParam) Win32Result<int> user32
Sends a message to the specified recipients.
BroadcastSystemMessageEx(BROADCAST_SYSTEM_MESSAGE_FLAGS flags, Pointer<Uint32>? lpInfo, int msg, WPARAM wParam, LPARAM lParam, Pointer<BSMINFO>? pbsmInfo) Win32Result<int> user32
Sends a message to the specified recipients.
CalculatePopupWindowPosition(Pointer<POINT> anchorPoint, Pointer<SIZE> windowSize, int flags, Pointer<RECT>? excludeRect, Pointer<RECT> popupWindowPosition) Win32Result<bool> user32
Calculates an appropriate pop-up window position using the specified anchor point, pop-up window size, flags, and the optional exclude rectangle.
CallMsgFilter(Pointer<MSG> lpMsg, int nCode) bool user32
Passes the specified message and hook code to the hook procedures associated with the WH_SYSMSGFILTER and WH_MSGFILTER hooks.
CallNextHookEx(HHOOK? hhk, int nCode, WPARAM wParam, LPARAM lParam) LRESULT user32
Passes the hook information to the next hook procedure in the current hook chain.
CallWindowProc(Pointer<NativeFunction<WNDPROC>> lpPrevWndFunc, HWND hWnd, int msg, WPARAM wParam, LPARAM lParam) LRESULT user32
Passes message information to the specified window procedure.
CascadeWindows(HWND? hwndParent, CASCADE_WINDOWS_HOW wHow, Pointer<RECT>? lpRect, int cKids, Pointer<Pointer<NativeType>>? lpKids) Win32Result<int> user32
Cascades the specified child windows of the specified parent window.
ChangeClipboardChain(HWND hWndRemove, HWND hWndNewNext) bool user32
Removes a specified window from the chain of clipboard viewers.
ChangeDisplaySettings(Pointer<DEVMODE>? lpDevMode, CDS_TYPE dwFlags) DISP_CHANGE user32
Changes the settings of the default display device to the specified graphics mode.
ChangeDisplaySettingsEx(PCWSTR? lpszDeviceName, Pointer<DEVMODE>? lpDevMode, CDS_TYPE dwflags, Pointer<NativeType>? lParam) DISP_CHANGE user32
Changes the settings of the specified display device to the specified graphics mode.
ChangeWindowMessageFilter(int message, CHANGE_WINDOW_MESSAGE_FILTER_FLAGS dwFlag) Win32Result<bool> user32
Adds or removes a message from the User Interface Privilege Isolation (UIPI) message filter.
ChangeWindowMessageFilterEx(HWND hwnd, int message, WINDOW_MESSAGE_FILTER_ACTION action, Pointer<CHANGEFILTERSTRUCT>? pChangeFilterStruct) Win32Result<bool> user32
Modifies the User Interface Privilege Isolation (UIPI) message filter for a specified window.
CheckDlgButton(HWND hDlg, int nIDButton, DLG_BUTTON_CHECK_STATE uCheck) Win32Result<bool> user32
Changes the check state of a button control.
CheckRadioButton(HWND hDlg, int nIDFirstButton, int nIDLastButton, int nIDCheckButton) Win32Result<bool> user32
Adds a check mark to (checks) a specified radio button in a group and removes a check mark from (clears) all other radio buttons in the group.
ChildWindowFromPoint(HWND hWndParent, POINT point) HWND user32
Determines which, if any, of the child windows belonging to a parent window contains the specified point.
ChildWindowFromPointEx(HWND hwnd, POINT pt, CWP_FLAGS flags) HWND user32
Determines which, if any, of the child windows belonging to the specified parent window contains the specified point.
ClientToScreen(HWND hWnd, Pointer<POINT> lpPoint) bool user32
Converts the client-area coordinates of a specified point to screen coordinates.
ClipCursor(Pointer<RECT>? lpRect) Win32Result<bool> user32
Confines the cursor to a rectangular area on the screen.
CloseClipboard() Win32Result<bool> user32
Closes the clipboard.
CloseDesktop(HDESK hDesktop) Win32Result<bool> user32
Closes an open handle to a desktop object.
CloseGestureInfoHandle(HGESTUREINFO hGestureInfo) Win32Result<bool> user32
Closes resources associated with a gesture information handle.
CloseTouchInputHandle(HTOUCHINPUT hTouchInput) Win32Result<bool> user32
Closes a touch input handle, frees process memory associated with it, and invalidates the handle.
CloseWindow(HWND hWnd) Win32Result<bool> user32
Minimizes (but does not destroy) the specified window.
CloseWindowStation(HWINSTA hWinSta) Win32Result<bool> user32
Closes an open window station handle.
CopyAcceleratorTable(HACCEL hAccelSrc, Pointer<ACCEL>? lpAccelDst, int cAccelEntries) int user32
Copies the specified accelerator table.
CopyIcon(HICON hIcon) Win32Result<HICON> user32
Copies the specified icon from another module to the current module.
CopyImage(HANDLE h, GDI_IMAGE_TYPE type, int cx, int cy, IMAGE_FLAGS flags) Win32Result<HANDLE> user32
Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one.
CopyRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc) bool user32
Copies the coordinates of one rectangle to another.
CountClipboardFormats() Win32Result<int> user32
Retrieves the number of different data formats currently on the clipboard.
CreateAcceleratorTable(Pointer<ACCEL> paccel, int cAccel) Win32Result<HACCEL> user32
Creates an accelerator table.
CreateCaret(HWND hWnd, HBITMAP? hBitmap, int nWidth, int nHeight) Win32Result<bool> user32
Creates a new shape for the system caret and assigns ownership of the caret to the specified window.
CreateCursor(HINSTANCE? hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, Pointer<NativeType> pvANDPlane, Pointer<NativeType> pvXORPlane) Win32Result<HCURSOR> user32
Creates a cursor having the specified size, bit patterns, and hot spot.
CreateDesktop(PCWSTR lpszDesktop, DESKTOP_CONTROL_FLAGS dwFlags, int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES>? lpsa) Win32Result<HDESK> user32
Creates a new desktop, associates it with the current window station of the calling process, and assigns it to the calling thread.
CreateDesktopEx(PCWSTR lpszDesktop, DESKTOP_CONTROL_FLAGS dwFlags, int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES>? lpsa, int ulHeapSize) Win32Result<HDESK> user32
Creates a new desktop with the specified heap, associates it with the current window station of the calling process, and assigns it to the calling thread.
CreateDialogIndirectParam(HINSTANCE? hInstance, Pointer<DLGTEMPLATE> lpTemplate, HWND? hWndParent, Pointer<NativeFunction<DLGPROC>>? lpDialogFunc, LPARAM dwInitParam) Win32Result<HWND> user32
Creates a modeless dialog box from a dialog box template in memory.
CreateIcon(HINSTANCE? hInstance, int nWidth, int nHeight, int cPlanes, int cBitsPixel, Pointer<Uint8> lpbANDbits, Pointer<Uint8> lpbXORbits) Win32Result<HICON> user32
Creates an icon that has the specified size, colors, and bit patterns.
CreateIconFromResource(Pointer<Uint8> presbits, int dwResSize, bool fIcon, int dwVer) Win32Result<HICON> user32
Creates an icon or cursor from resource bits describing the icon.
CreateIconFromResourceEx(Pointer<Uint8> presbits, int dwResSize, bool fIcon, int dwVer, int cxDesired, int cyDesired, IMAGE_FLAGS flags) Win32Result<HICON> user32
Creates an icon or cursor from resource bits describing the icon.
CreateIconIndirect(Pointer<ICONINFO> piconinfo) Win32Result<HICON> user32
Creates an icon or cursor from an ICONINFO structure.
CreateMDIWindow(PCWSTR lpClassName, PCWSTR lpWindowName, WINDOW_STYLE dwStyle, int x, int y, int nWidth, int nHeight, HWND? hWndParent, HINSTANCE? hInstance, LPARAM lParam) Win32Result<HWND> user32
Creates a multiple-document interface (MDI) child window.
CreateMenu() Win32Result<HMENU> user32
Creates a menu.
CreatePopupMenu() Win32Result<HMENU> user32
Creates a drop-down menu, submenu, or shortcut menu.
CreateWindow(PCWSTR? lpClassName, PCWSTR? lpWindowName, WINDOW_STYLE dwStyle, int X, int Y, int nWidth, int nHeight, HWND? hWndParent, HMENU? hMenu, HINSTANCE? hInstance, Pointer<NativeType>? lpParam) Win32Result<HWND> user32
Creates an overlapped, pop-up, or child window.
CreateWindowEx(WINDOW_EX_STYLE dwExStyle, PCWSTR? lpClassName, PCWSTR? lpWindowName, WINDOW_STYLE dwStyle, int x, int y, int nWidth, int nHeight, HWND? hWndParent, HMENU? hMenu, HINSTANCE? hInstance, Pointer<NativeType>? lpParam) Win32Result<HWND> user32
Creates an overlapped, pop-up, or child window with an extended window style; otherwise, this function is identical to the CreateWindow function.
CreateWindowStation(PCWSTR? lpwinsta, int dwFlags, int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES>? lpsa) Win32Result<HWINSTA> user32
Creates a window station object, associates it with the calling process, and assigns it to the current session.
DeferWindowPos(HDWP hWinPosInfo, HWND hWnd, HWND? hWndInsertAfter, int x, int y, int cx, int cy, SET_WINDOW_POS_FLAGS uFlags) Win32Result<HDWP> user32
Updates the specified multiple-window — position structure for the specified window.
DefMDIChildProc(HWND hWnd, int uMsg, WPARAM wParam, LPARAM lParam) LRESULT user32
Provides default processing for any window message that the window procedure of a multiple-document interface (MDI) child window does not process.
DefRawInputProc(Pointer<Pointer<RAWINPUT>> paRawInput, int nInput, int cbSizeHeader) LRESULT user32
Verifies that the size of the RAWINPUTHEADER structure is correct.
DefWindowProc(HWND hWnd, int msg, WPARAM wParam, LPARAM lParam) LRESULT user32
Calls the default window procedure to provide default processing for any window messages that an application does not process.
DeleteMenu(HMENU hMenu, int uPosition, MENU_ITEM_FLAGS uFlags) Win32Result<bool> user32
Deletes an item from the specified menu.
DestroyAcceleratorTable(HACCEL hAccel) bool user32
Destroys an accelerator table.
DestroyCaret() Win32Result<bool> user32
Destroys the caret's current shape, frees the caret from the window, and removes the caret from the screen.
DestroyCursor(HCURSOR hCursor) Win32Result<bool> user32
Destroys a cursor and frees any memory the cursor occupied.
DestroyIcon(HICON hIcon) Win32Result<bool> user32
Destroys an icon and frees any memory the icon occupied.
DestroyMenu(HMENU hMenu) Win32Result<bool> user32
Destroys the specified menu and frees any memory that the menu occupies.
DestroyWindow(HWND hWnd) Win32Result<bool> user32
Destroys the specified window.
DialogBoxIndirect(HINSTANCE? hInstance, Pointer<DLGTEMPLATE> lpTemplate, HWND? hWndParent, Pointer<NativeFunction<DLGPROC>>? lpDialogFunc) Win32Result<int> user32
Creates a modal dialog box from a dialog box template in memory.
DialogBoxIndirectParam(HINSTANCE? hInstance, Pointer<DLGTEMPLATE> hDialogTemplate, HWND? hWndParent, Pointer<NativeFunction<DLGPROC>>? lpDialogFunc, LPARAM dwInitParam) Win32Result<int> user32
Creates a modal dialog box from a dialog box template in memory.
DisableProcessWindowsGhosting() → void user32
Disables the window ghosting feature for the calling GUI process.
DispatchMessage(Pointer<MSG> lpMsg) LRESULT user32
Dispatches a message to a window procedure.
DragDetect(HWND hwnd, POINT pt) bool user32
Captures the mouse and tracks its movement until the user releases the left button, presses the ESC key, or moves the mouse outside the drag rectangle around the specified point.
DrawAnimatedRects(HWND? hwnd, int idAni, Pointer<RECT> lprcFrom, Pointer<RECT> lprcTo) bool user32
Animates the caption of a window to indicate the opening of an icon or the minimizing or maximizing of a window.
DrawCaption(HWND hwnd, HDC hdc, Pointer<RECT> lprect, DRAW_CAPTION_FLAGS flags) bool user32
Draws a window caption.
DrawEdge(HDC hdc, Pointer<RECT> qrc, DRAWEDGE_FLAGS edge, DRAW_EDGE_FLAGS grfFlags) bool user32
Draws one or more edges of rectangle.
DrawFocusRect(HDC hDC, Pointer<RECT> lprc) bool user32
Draws a rectangle in the style used to indicate that the rectangle has the focus.
DrawFrameControl(HDC hdc, Pointer<RECT> lprc, int uType, int uState) bool user32
Draws a frame control of the specified type and style.
DrawIcon(HDC hDC, int x, int y, HICON hIcon) Win32Result<bool> user32
Draws an icon or cursor into the specified device context.
DrawState(HDC hdc, HBRUSH? hbrFore, Pointer<NativeFunction<DRAWSTATEPROC>>? qfnCallBack, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, DRAWSTATE_FLAGS uFlags) bool user32
Displays an image and applies a visual effect to indicate a state, such as a disabled or default state.
DrawText(HDC hdc, PCWSTR lpchText, int cchText, Pointer<RECT> lprc, DRAW_TEXT_FORMAT format) int user32
Draws formatted text in the specified rectangle.
DrawTextEx(HDC hdc, PWSTR lpchText, int cchText, Pointer<RECT> lprc, DRAW_TEXT_FORMAT format, Pointer<DRAWTEXTPARAMS>? lpdtp) int user32
Draws formatted text in the specified rectangle.
EmptyClipboard() Win32Result<bool> user32
Empties the clipboard and frees handles to data in the clipboard.
EnableMenuItem(HMENU hMenu, int uIDEnableItem, MENU_ITEM_FLAGS uEnable) bool user32
Enables, disables, or grays the specified menu item.
EnableMouseInPointer(bool fEnable) Win32Result<bool> user32
Enables the mouse to act as a pointer input device and send WM_POINTER messages.
EnableNonClientDpiScaling(HWND hwnd) Win32Result<bool> user32
In high-DPI displays, enables automatic display scaling of the non-client area portions of the specified top-level window.
EnableScrollBar(HWND hWnd, int wSBflags, ENABLE_SCROLL_BAR_ARROWS wArrows) Win32Result<bool> user32
Enables or disables one or both scroll bar arrows.
EnableWindow(HWND hWnd, bool bEnable) bool user32
Enables or disables mouse and keyboard input to the specified window or control.
EndDeferWindowPos(HDWP hWinPosInfo) Win32Result<bool> user32
Simultaneously updates the position and size of one or more windows in a single screen-refreshing cycle.
EndDialog(HWND hDlg, int nResult) Win32Result<bool> user32
Destroys a modal dialog box, causing the system to end any processing for the dialog box.
EndMenu() Win32Result<bool> user32
Ends the calling thread's active menu.
EndPaint(HWND hWnd, Pointer<PAINTSTRUCT> lpPaint) bool user32
Marks the end of painting in the specified window.
EnumChildWindows(HWND? hWndParent, Pointer<NativeFunction<WNDENUMPROC>> lpEnumFunc, LPARAM lParam) bool user32
Enumerates the child windows that belong to the specified parent window by passing the handle to each child window, in turn, to an application-defined callback function.
EnumClipboardFormats(int format) Win32Result<int> user32
Enumerates the data formats currently available on the clipboard.
EnumDesktopWindows(HDESK? hDesktop, Pointer<NativeFunction<WNDENUMPROC>> lpfn, LPARAM lParam) Win32Result<bool> user32
Enumerates all top-level windows associated with the specified desktop.
EnumDisplayDevices(PCWSTR? lpDevice, int iDevNum, Pointer<DISPLAY_DEVICE> lpDisplayDevice, int dwFlags) bool user32
Lets you obtain information about the display devices in the current session.
EnumDisplayMonitors(HDC? hdc, Pointer<RECT>? lprcClip, Pointer<NativeFunction<MONITORENUMPROC>> lpfnEnum, LPARAM dwData) bool user32
Enumerates display monitors (including invisible pseudo-monitors associated with the mirroring drivers) that intersect a region formed by the intersection of a specified clipping rectangle and the visible region of a device context.
EnumDisplaySettings(PCWSTR? lpszDeviceName, ENUM_DISPLAY_SETTINGS_MODE iModeNum, Pointer<DEVMODE> lpDevMode) bool user32
Retrieves information about one of the graphics modes for a display device.
EnumDisplaySettingsEx(PCWSTR? lpszDeviceName, ENUM_DISPLAY_SETTINGS_MODE iModeNum, Pointer<DEVMODE> lpDevMode, ENUM_DISPLAY_SETTINGS_FLAGS dwFlags) bool user32
Retrieves information about one of the graphics modes for a display device.
EnumThreadWindows(int dwThreadId, Pointer<NativeFunction<WNDENUMPROC>> lpfn, LPARAM lParam) bool user32
Enumerates all nonchild windows associated with a thread by passing the handle to each window, in turn, to an application-defined callback function.
EnumWindows(Pointer<NativeFunction<WNDENUMPROC>> lpEnumFunc, LPARAM lParam) Win32Result<bool> user32
Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function.
EqualRect(Pointer<RECT> lprc1, Pointer<RECT> lprc2) bool user32
Determines whether the two specified rectangles are equal by comparing the coordinates of their upper-left and lower-right corners.
ExcludeUpdateRgn(HDC hDC, HWND hWnd) int user32
Prevents drawing within invalid areas of a window by excluding an updated region in the window from a clipping region.
FillRect(HDC hDC, Pointer<RECT> lprc, HBRUSH hbr) int user32
Fills a rectangle by using the specified brush.
FindWindow(PCWSTR? lpClassName, PCWSTR? lpWindowName) Win32Result<HWND> user32
Retrieves a handle to the top-level window whose class name and window name match the specified strings.
FindWindowEx(HWND? hWndParent, HWND? hWndChildAfter, PCWSTR? lpszClass, PCWSTR? lpszWindow) Win32Result<HWND> user32
Retrieves a handle to a window whose class name and window name match the specified strings.
FrameRect(HDC hDC, Pointer<RECT> lprc, HBRUSH hbr) int user32
Draws a border around the specified rectangle by using the specified brush.
GET_SC_WPARAM(int wParam) int user32
Retrieves the parameters to WM_SYSCOMMAND.
GetActiveWindow() HWND user32
Retrieves the window handle to the active window attached to the calling thread's message queue.
GetAltTabInfo(HWND? hwnd, int iItem, Pointer<ALTTABINFO> pati, PWSTR? pszItemText, int cchItemText) Win32Result<bool> user32
Retrieves status information for the specified window if it is the application-switching (ALT+TAB) window.
GetAncestor(HWND hwnd, GET_ANCESTOR_FLAGS gaFlags) HWND user32
Retrieves the handle to the ancestor of the specified window.
GetAsyncKeyState(int vKey) int user32
Determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.
GetAwarenessFromDpiAwarenessContext(DPI_AWARENESS_CONTEXT value) DPI_AWARENESS user32
Retrieves the DPI_AWARENESS value from a DPI_AWARENESS_CONTEXT.
GetCapture() HWND user32
Retrieves a handle to the window (if any) that has captured the mouse.
GetCaretBlinkTime() Win32Result<int> user32
Retrieves the time required to invert the caret's pixels.
GetCaretPos(Pointer<POINT> lpPoint) Win32Result<bool> user32
Copies the caret's position to the specified POINT structure.
GetClassInfo(HINSTANCE? hInstance, PCWSTR lpClassName, Pointer<WNDCLASS> lpWndClass) Win32Result<bool> user32
Retrieves information about a window class.
GetClassInfoEx(HINSTANCE? hInstance, PCWSTR lpszClass, Pointer<WNDCLASSEX> lpwcx) Win32Result<bool> user32
Retrieves information about a window class, including a handle to the small icon associated with the window class.
GetClassLongPtr(HWND hWnd, GET_CLASS_LONG_INDEX nIndex) Win32Result<int> user32
Retrieves the specified value from the WNDCLASSEX structure associated with the specified window.
GetClassName(HWND hWnd, PWSTR lpClassName, int nMaxCount) Win32Result<int> user32
Retrieves the name of the class to which the specified window belongs.
GetClientRect(HWND hWnd, Pointer<RECT> lpRect) Win32Result<bool> user32
Retrieves the coordinates of a window's client area.
GetClipboardData(int uFormat) Win32Result<HANDLE> user32
Retrieves data from the clipboard in a specified format.
GetClipboardFormatName(int format, PWSTR lpszFormatName, int cchMaxCount) Win32Result<int> user32
Retrieves from the clipboard the name of the specified registered format.
GetClipboardOwner() Win32Result<HWND> user32
Retrieves the window handle of the current owner of the clipboard.
GetClipboardSequenceNumber() int user32
Retrieves the clipboard sequence number for the current window station.
GetClipboardViewer() Win32Result<HWND> user32
Retrieves the handle to the first window in the clipboard viewer chain.
GetClipCursor(Pointer<RECT> lpRect) Win32Result<bool> user32
Retrieves the screen coordinates of the rectangular area to which the cursor is confined.
GetCursor() HCURSOR user32
Retrieves a handle to the current cursor.
GetCursorInfo(Pointer<CURSORINFO> pci) Win32Result<bool> user32
Retrieves information about the global cursor.
GetCursorPos(Pointer<POINT> lpPoint) Win32Result<bool> user32
Retrieves the position of the mouse cursor, in screen coordinates.
GetDC(HWND? hWnd) HDC user32
Retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen.
GetDCEx(HWND? hWnd, HRGN? hrgnClip, GET_DCX_FLAGS flags) HDC user32
Retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen.
GetDesktopWindow() HWND user32
Retrieves a handle to the desktop window.
GetDialogBaseUnits() int user32
Retrieves the system's dialog base units, which are the average width and height of characters in the system font.
GetDialogControlDpiChangeBehavior(HWND hWnd) Win32Result<DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS> user32
Retrieves and per-monitor DPI scaling behavior overrides of a child window in a dialog.
GetDialogDpiChangeBehavior(HWND hDlg) Win32Result<DIALOG_DPI_CHANGE_BEHAVIORS> user32
Returns the flags that might have been set on a given dialog by an earlier call to SetDialogDpiChangeBehavior.
GetDisplayAutoRotationPreferences(Pointer<Int32> pOrientation) bool user32
Retrieves the screen auto-rotation preferences for the current process.
GetDlgItem(HWND? hDlg, int nIDDlgItem) Win32Result<HWND> user32
Retrieves a handle to a control in the specified dialog box.
GetDlgItemInt(HWND hDlg, int nIDDlgItem, Pointer<Int32>? lpTranslated, bool bSigned) Win32Result<int> user32
Translates the text of a specified control in a dialog box into an integer value.
GetDlgItemText(HWND hDlg, int nIDDlgItem, PWSTR lpString, int cchMax) Win32Result<int> user32
Retrieves the title or text associated with a control in a dialog box.
GetDoubleClickTime() int user32
Retrieves the current double-click time for the mouse.
GetDpiForSystem() int user32
Returns the system DPI.
GetDpiForWindow(HWND hwnd) int user32
Returns the dots per inch (dpi) value for the specified window.
GetDpiFromDpiAwarenessContext(DPI_AWARENESS_CONTEXT value) int user32
Retrieves the DPI from a given DPI_AWARENESS_CONTEXT handle.
GetFocus() HWND user32
Retrieves the handle to the window that has the keyboard focus, if the window is attached to the calling thread's message queue.
GetForegroundWindow() HWND user32
Retrieves a handle to the foreground window (the window with which the user is currently working).
GetGestureConfig(HWND hwnd, int dwFlags, Pointer<Uint32> pcIDs, Pointer<GESTURECONFIG> pGestureConfig, int cbSize) Win32Result<bool> user32
Retrieves the configuration for which Windows Touch gesture messages are sent from a window.
GetGestureExtraArgs(HGESTUREINFO hGestureInfo, int cbExtraArgs, Pointer<Uint8> pExtraArgs) Win32Result<bool> user32
Retrieves additional information about a gesture from its GESTUREINFO handle.
GetGestureInfo(HGESTUREINFO hGestureInfo, Pointer<GESTUREINFO> pGestureInfo) Win32Result<bool> user32
Retrieves a GESTUREINFO structure given a handle to the gesture information.
GetGUIThreadInfo(int idThread, Pointer<GUITHREADINFO> pgui) Win32Result<bool> user32
Retrieves information about the active window or a specified GUI thread.
GetIconInfo(HICON hIcon, Pointer<ICONINFO> piconinfo) Win32Result<bool> user32
Retrieves information about the specified icon or cursor.
GetIconInfoEx(HICON hicon, Pointer<ICONINFOEX> piconinfo) bool user32
Retrieves information about the specified icon or cursor.
GetInputState() bool user32
Determines whether there are mouse-button or keyboard messages in the calling thread's message queue.
GetKeyboardLayout(int idThread) HKL user32
Retrieves the active input locale identifier (formerly called the keyboard layout).
GetKeyboardLayoutList(int nBuff, Pointer<Pointer<NativeType>>? lpList) Win32Result<int> user32
Retrieves the input locale identifiers (formerly called keyboard layout handles) corresponding to the current set of input locales in the system.
GetKeyboardLayoutName(PWSTR pwszKLID) Win32Result<bool> user32
Retrieves the name of the active input locale identifier (formerly called the keyboard layout) for the system.
GetKeyboardState(Pointer<Uint8> lpKeyState) Win32Result<bool> user32
Copies the status of the 256 virtual keys to the specified buffer.
GetKeyboardType(int nTypeFlag) Win32Result<int> user32
Retrieves information about the current keyboard.
GetKeyNameText(int lParam, PWSTR lpString, int cchSize) Win32Result<int> user32
Retrieves a string that represents the name of a key.
GetKeyState(int nVirtKey) int user32
Retrieves the status of the specified virtual key.
GetLastInputInfo(Pointer<LASTINPUTINFO> plii) bool user32
Retrieves the time of the last input event.
GetLayeredWindowAttributes(HWND hwnd, Pointer<Uint32>? pcrKey, Pointer<Uint8>? pbAlpha, Pointer<Uint32>? pdwFlags) Win32Result<bool> user32
Retrieves the opacity and transparency color key of a layered window.
GetMenu(HWND hWnd) HMENU user32
Retrieves a handle to the menu assigned to the specified window.
GetMenuBarInfo(HWND hwnd, OBJECT_IDENTIFIER idObject, int idItem, Pointer<MENUBARINFO> pmbi) Win32Result<bool> user32
Retrieves information about the specified menu bar.
GetMenuDefaultItem(HMENU hMenu, int fByPos, GET_MENU_DEFAULT_ITEM_FLAGS gmdiFlags) Win32Result<int> user32
Determines the default menu item on the specified menu.
GetMenuInfo(HMENU param0, Pointer<MENUINFO> param1) Win32Result<bool> user32
Retrieves information about a specified menu.
GetMenuItemCount(HMENU? hMenu) Win32Result<int> user32
Determines the number of items in the specified menu.
GetMenuItemID(HMENU hMenu, int nPos) int user32
Retrieves the menu item identifier of a menu item located at the specified position in a menu.
GetMenuItemInfo(HMENU hmenu, int item, bool fByPosition, Pointer<MENUITEMINFO> lpmii) Win32Result<bool> user32
Retrieves information about a menu item.
GetMenuItemRect(HWND? hWnd, HMENU hMenu, int uItem, Pointer<RECT> lprcItem) Win32Result<bool> user32
Retrieves the bounding rectangle for the specified menu item.
GetMenuState(HMENU hMenu, int uId, MENU_ITEM_FLAGS uFlags) int user32
Retrieves the menu flags associated with the specified menu item.
GetMenuString(HMENU hMenu, int uIDItem, PWSTR? lpString, int cchMax, MENU_ITEM_FLAGS flags) int user32
Copies the text string of the specified menu item into the specified buffer.
GetMessage(Pointer<MSG> lpMsg, HWND? hWnd, int wMsgFilterMin, int wMsgFilterMax) Win32Result<bool> user32
Retrieves a message from the calling thread's message queue.
GetMessageExtraInfo() LPARAM user32
Retrieves the extra message information for the current thread.
GetMessagePos() int user32
Retrieves the cursor position for the last message retrieved by the GetMessage function.
GetMessageTime() int user32
Retrieves the message time for the last message retrieved by the GetMessage function.
GetMonitorInfo(HMONITOR hMonitor, Pointer<MONITORINFO> lpmi) bool user32
Retrieves information about a display monitor.
GetMouseMovePointsEx(int cbSize, Pointer<MOUSEMOVEPOINT> lppt, Pointer<MOUSEMOVEPOINT> lpptBuf, int nBufPoints, GET_MOUSE_MOVE_POINTS_EX_RESOLUTION resolution) Win32Result<int> user32
Retrieves a history of up to 64 previous coordinates of the mouse or pen.
GetNextDlgGroupItem(HWND hDlg, HWND? hCtl, bool bPrevious) Win32Result<HWND> user32
Retrieves a handle to the first control in a group of controls that precedes (or follows) the specified control in a dialog box.
GetNextDlgTabItem(HWND hDlg, HWND? hCtl, bool bPrevious) Win32Result<HWND> user32
Retrieves a handle to the first control that has the WS_TABSTOP style that precedes (or follows) the specified control.
GetOpenClipboardWindow() Win32Result<HWND> user32
Retrieves the handle to the window that currently has the clipboard open.
GetParent(HWND hWnd) Win32Result<HWND> user32
Retrieves a handle to the specified window's parent or owner.
GetPhysicalCursorPos(Pointer<POINT> lpPoint) Win32Result<bool> user32
Retrieves the position of the cursor in physical coordinates.
GetPointerCursorId(int pointerId, Pointer<Uint32> cursorId) Win32Result<bool> user32
Retrieves the cursor identifier associated with the specified pointer.
GetPointerFrameInfo(int pointerId, Pointer<Uint32> pointerCount, Pointer<POINTER_INFO>? pointerInfo) Win32Result<bool> user32
Gets the entire frame of information for the specified pointers associated with the current message.
GetPointerFrameInfoHistory(int pointerId, Pointer<Uint32> entriesCount, Pointer<Uint32> pointerCount, Pointer<POINTER_INFO>? pointerInfo) Win32Result<bool> user32
Gets the entire frame of information (including coalesced input frames) for the specified pointers associated with the current message.
GetPointerFramePenInfo(int pointerId, Pointer<Uint32> pointerCount, Pointer<POINTER_PEN_INFO>? penInfo) Win32Result<bool> user32
Gets the entire frame of pen-based information for the specified pointers (of type PT_PEN) associated with the current message.
GetPointerFramePenInfoHistory(int pointerId, Pointer<Uint32> entriesCount, Pointer<Uint32> pointerCount, Pointer<POINTER_PEN_INFO>? penInfo) Win32Result<bool> user32
Gets the entire frame of pen-based information (including coalesced input frames) for the specified pointers (of type PT_PEN) associated with the current message.
GetPointerFrameTouchInfo(int pointerId, Pointer<Uint32> pointerCount, Pointer<POINTER_TOUCH_INFO>? touchInfo) Win32Result<bool> user32
Gets the entire frame of touch-based information for the specified pointers (of type PT_TOUCH) associated with the current message.
GetPointerFrameTouchInfoHistory(int pointerId, Pointer<Uint32> entriesCount, Pointer<Uint32> pointerCount, Pointer<POINTER_TOUCH_INFO>? touchInfo) Win32Result<bool> user32
Gets the entire frame of touch-based information (including coalesced input frames) for the specified pointers (of type PT_TOUCH) associated with the current message.
GetPointerInfo(int pointerId, Pointer<POINTER_INFO> pointerInfo) Win32Result<bool> user32
Gets the information for the specified pointer associated with the current message.
GetPointerInfoHistory(int pointerId, Pointer<Uint32> entriesCount, Pointer<POINTER_INFO>? pointerInfo) Win32Result<bool> user32
Gets the information associated with the individual inputs, if any, that were coalesced into the current message for the specified pointer.
GetPointerInputTransform(int pointerId, int historyCount, Pointer<INPUT_TRANSFORM> inputTransform) Win32Result<bool> user32
Gets one or more transforms for the pointer information coordinates associated with the current message.
GetPointerPenInfo(int pointerId, Pointer<POINTER_PEN_INFO> penInfo) Win32Result<bool> user32
Gets the pen-based information for the specified pointer (of type PT_PEN) associated with the current message.
GetPointerPenInfoHistory(int pointerId, Pointer<Uint32> entriesCount, Pointer<POINTER_PEN_INFO>? penInfo) Win32Result<bool> user32
Gets the pen-based information associated with the individual inputs, if any, that were coalesced into the current message for the specified pointer (of type PT_PEN).
GetPointerTouchInfo(int pointerId, Pointer<POINTER_TOUCH_INFO> touchInfo) Win32Result<bool> user32
Gets the touch-based information for the specified pointer (of type PT_TOUCH) associated with the current message.
GetPointerTouchInfoHistory(int pointerId, Pointer<Uint32> entriesCount, Pointer<POINTER_TOUCH_INFO>? touchInfo) Win32Result<bool> user32
Gets the touch-based information associated with the individual inputs, if any, that were coalesced into the current message for the specified pointer (of type PT_TOUCH).
GetPointerType(int pointerId, Pointer<Int32> pointerType) Win32Result<bool> user32
Retrieves the pointer type for a specified pointer.
GetPriorityClipboardFormat(Pointer<Uint32> paFormatPriorityList, int cFormats) Win32Result<int> user32
Retrieves the first available clipboard format in the specified list.
GetProcessWindowStation() Win32Result<HWINSTA> user32
Retrieves a handle to the current window station for the calling process.
GetProp(HWND hWnd, PCWSTR lpString) HANDLE user32
Retrieves a data handle from the property list of the specified window.
GetRawInputBuffer(Pointer<RAWINPUT>? pData, Pointer<Uint32> pcbSize, int cbSizeHeader) Win32Result<int> user32
Performs a buffered read of the raw input data.
GetRawInputData(HRAWINPUT hRawInput, RAW_INPUT_DATA_COMMAND_FLAGS uiCommand, Pointer<NativeType>? pData, Pointer<Uint32> pcbSize, int cbSizeHeader) int user32
Retrieves the raw input from the specified device.
GetRawInputDeviceInfo(HANDLE? hDevice, RAW_INPUT_DEVICE_INFO_COMMAND uiCommand, Pointer<NativeType>? pData, Pointer<Uint32> pcbSize) Win32Result<int> user32
Retrieves information about the raw input device.
GetRawInputDeviceList(Pointer<RAWINPUTDEVICELIST>? pRawInputDeviceList, Pointer<Uint32> puiNumDevices, int cbSize) Win32Result<int> user32
Enumerates the raw input devices attached to the system.
GetRegisteredRawInputDevices(Pointer<RAWINPUTDEVICE>? pRawInputDevices, Pointer<Uint32> puiNumDevices, int cbSize) Win32Result<int> user32
Retrieves the information about the raw input devices for the current application.
GetScrollBarInfo(HWND hwnd, OBJECT_IDENTIFIER idObject, Pointer<SCROLLBARINFO> psbi) Win32Result<bool> user32
Retrieves information about the specified scroll bar.
GetScrollInfo(HWND hwnd, SCROLLBAR_CONSTANTS nBar, Pointer<SCROLLINFO> lpsi) Win32Result<bool> user32
Retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
GetShellWindow() HWND user32
Retrieves a handle to the Shell's desktop window.
GetSubMenu(HMENU hMenu, int nPos) HMENU user32
Retrieves a handle to the drop-down menu or submenu activated by the specified menu item.
GetSysColor(SYS_COLOR_INDEX nIndex) int user32
Retrieves the current color of the specified display element.
GetSysColorBrush(SYS_COLOR_INDEX nIndex) HBRUSH user32
Retrieves a handle identifying a logical brush that corresponds to the specified color index.
GetSystemDpiForProcess(HANDLE hProcess) int user32
Retrieves the system DPI associated with a given process.
GetSystemMenu(HWND hWnd, bool bRevert) HMENU user32
Enables the application to access the window menu (also known as the system menu or the control menu) for copying and modifying.
GetSystemMetrics(SYSTEM_METRICS_INDEX nIndex) int user32
Retrieves the specified system metric or system configuration setting.
GetSystemMetricsForDpi(SYSTEM_METRICS_INDEX nIndex, int dpi) Win32Result<int> user32
Retrieves the specified system metric or system configuration setting taking into account a provided DPI.
GetTabbedTextExtent(HDC hdc, PCWSTR lpString, int chCount, int nTabPositions, Pointer<Int32>? lpnTabStopPositions) int user32
Computes the width and height of a character string.
GetThreadDesktop(int dwThreadId) Win32Result<HDESK> user32
Retrieves a handle to the desktop assigned to the specified thread.
GetThreadDpiAwarenessContext() DPI_AWARENESS_CONTEXT user32
Gets the DPI_AWARENESS_CONTEXT for the current thread.
GetThreadDpiHostingBehavior() DPI_HOSTING_BEHAVIOR user32
Retrieves the DPI_HOSTING_BEHAVIOR from the current thread.
GetTitleBarInfo(HWND hwnd, Pointer<TITLEBARINFO> pti) Win32Result<bool> user32
Retrieves information about the specified title bar.
GetTopWindow(HWND? hWnd) Win32Result<HWND> user32
Examines the Z order of the child windows associated with the specified parent window and retrieves a handle to the child window at the top of the Z order.
GetTouchInputInfo(HTOUCHINPUT hTouchInput, int cInputs, Pointer<TOUCHINPUT> pInputs, int cbSize) Win32Result<bool> user32
Retrieves detailed information about touch inputs associated with a particular touch input handle.
GetUnpredictedMessagePos() int user32
Gets pointer data before it has gone through touch prediction processing.
GetUpdatedClipboardFormats(Pointer<Uint32> lpuiFormats, int cFormats, Pointer<Uint32> pcFormatsOut) Win32Result<bool> user32
Retrieves the currently supported clipboard formats.
GetUpdateRect(HWND hWnd, Pointer<RECT>? lpRect, bool bErase) bool user32
Retrieves the coordinates of the smallest rectangle that completely encloses the update region of the specified window.
GetUpdateRgn(HWND hWnd, HRGN hRgn, bool bErase) GDI_REGION_TYPE user32
Retrieves the update region of a window by copying it into the specified region.
GetUserObjectInformation(HANDLE hObj, USER_OBJECT_INFORMATION_INDEX nIndex, Pointer<NativeType>? pvInfo, int nLength, Pointer<Uint32>? lpnLengthNeeded) Win32Result<bool> user32
Retrieves information about the specified window station or desktop object.
GetWindow(HWND hWnd, GET_WINDOW_CMD uCmd) Win32Result<HWND> user32
Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window.
GetWindowCompositionAttribute(HWND hwnd, Pointer<WINDOWCOMPOSITIONATTRIBDATA> pwcad) bool user32
Retrieves the current value of a specified Desktop Window Manager (DWM) attribute applied to a window.
GetWindowDC(HWND? hWnd) HDC user32
Retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars.
GetWindowDisplayAffinity(HWND hWnd, Pointer<Uint32> pdwAffinity) Win32Result<bool> user32
Retrieves the current display affinity setting, from any process, for a given window.
GetWindowDpiAwarenessContext(HWND hwnd) DPI_AWARENESS_CONTEXT user32
Returns the DPI_AWARENESS_CONTEXT associated with a window.
GetWindowDpiHostingBehavior(HWND hwnd) DPI_HOSTING_BEHAVIOR user32
Returns the DPI_HOSTING_BEHAVIOR of the specified window.
GetWindowInfo(HWND hwnd, Pointer<WINDOWINFO> pwi) Win32Result<bool> user32
Retrieves information about the specified window.
GetWindowLongPtr(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex) Win32Result<int> user32
Retrieves information about the specified window.
GetWindowModuleFileName(HWND hwnd, PWSTR pszFileName, int cchFileNameMax) int user32
Retrieves the full path and file name of the module associated with the specified window handle.
GetWindowPlacement(HWND hWnd, Pointer<WINDOWPLACEMENT> lpwndpl) Win32Result<bool> user32
Retrieves the show state and the restored, minimized, and maximized positions of the specified window.
GetWindowRect(HWND hWnd, Pointer<RECT> lpRect) Win32Result<bool> user32
Retrieves the dimensions of the bounding rectangle of the specified window.
GetWindowRgn(HWND hWnd, HRGN hRgn) GDI_REGION_TYPE user32
Obtains a copy of the window region of a window.
GetWindowRgnBox(HWND hWnd, Pointer<RECT> lprc) GDI_REGION_TYPE user32
Retrieves the dimensions of the tightest bounding rectangle for the window region of a window.
GetWindowText(HWND hWnd, PWSTR lpString, int nMaxCount) Win32Result<int> user32
Copies the text of the specified window's title bar (if it has one) into a buffer.
GetWindowTextLength(HWND hWnd) Win32Result<int> user32
Retrieves the length, in characters, of the specified window's title bar text (if the window has a title bar).
GetWindowThreadProcessId(HWND hWnd, Pointer<Uint32>? lpdwProcessId) int user32
Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window.
GrayString(HDC hDC, HBRUSH? hBrush, Pointer<NativeFunction<GRAYSTRINGPROC>>? lpOutputFunc, LPARAM lpData, int nCount, int x, int y, int nWidth, int nHeight) bool user32
Draws gray text at the specified location.
HideCaret(HWND? hWnd) Win32Result<bool> user32
Removes the caret from the screen.
HiliteMenuItem(HWND hWnd, HMENU hMenu, int uIDHiliteItem, int uHilite) bool user32
Adds or removes highlighting from an item in a menu bar.
InflateRect(Pointer<RECT> lprc, int dx, int dy) bool user32
Increases or decreases the width and height of the specified rectangle.
InSendMessage() bool user32
Determines whether the current window procedure is processing a message that was sent from another thread (in the same process or a different process) by a call to the SendMessage function.
InSendMessageEx() int user32
Determines whether the current window procedure is processing a message that was sent from another thread (in the same process or a different process).
InsertMenu(HMENU hMenu, int uPosition, MENU_ITEM_FLAGS uFlags, int uIDNewItem, PCWSTR? lpNewItem) Win32Result<bool> user32
Inserts a new menu item into a menu, moving other items down the menu.
InsertMenuItem(HMENU hmenu, int item, bool fByPosition, Pointer<MENUITEMINFO> lpmi) Win32Result<bool> user32
Inserts a new menu item at the specified position in a menu.
IntersectRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) bool user32
Calculates the intersection of two source rectangles and places the coordinates of the intersection rectangle into the destination rectangle.
InvalidateRect(HWND? hWnd, Pointer<RECT>? lpRect, bool bErase) bool user32
Adds a rectangle to the specified window's update region.
InvalidateRgn(HWND hWnd, HRGN? hRgn, bool bErase) bool user32
Invalidates the client area within the specified region by adding it to the current update region of a window.
InvertRect(HDC hDC, Pointer<RECT> lprc) bool user32
Inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the rectangle's interior.
IsChild(HWND hWndParent, HWND hWnd) bool user32
Determines whether a window is a child window or descendant window of a specified parent window.
IsClipboardFormatAvailable(int format) Win32Result<bool> user32
Determines whether the clipboard contains data in the specified format.
IsDialogMessage(HWND hDlg, Pointer<MSG> lpMsg) bool user32
Determines whether a message is intended for the specified dialog box and, if it is, processes the message.
IsDlgButtonChecked(HWND hDlg, int nIDButton) int user32
Determines whether a button control is checked or whether a three-state button control is checked, unchecked, or indeterminate.
IsGUIThread(bool bConvert) bool user32
Determines whether the calling thread is already a GUI thread.
IsHungAppWindow(HWND hwnd) bool user32
Determines whether the system considers that a specified application is not responding.
IsIconic(HWND hWnd) bool user32
Determines whether the specified window is minimized (iconic).
IsImmersiveProcess(HANDLE hProcess) Win32Result<bool> user32
Determines whether the process belongs to a Windows Store app.
IsMenu(HMENU hMenu) bool user32
Determines whether a handle is a menu handle.
IsMouseInPointerEnabled() bool user32
Indicates whether EnableMouseInPointer is set for the mouse to act as a pointer input device and send WM_POINTER messages.
IsProcessDPIAware() bool user32
Determines whether the current process is dots per inch (dpi) aware such that it adjusts the sizes of UI elements to compensate for the dpi setting.
IsRectEmpty(Pointer<RECT> lprc) bool user32
Determines whether the specified rectangle is empty.
IsTouchWindow(HWND hwnd, Pointer<Uint32>? pulFlags) bool user32
Checks whether a specified window is touch-capable and, optionally, retrieves the modifier flags set for the window's touch capability.
IsValidDpiAwarenessContext(DPI_AWARENESS_CONTEXT value) bool user32
Determines if a specified DPI_AWARENESS_CONTEXT is valid and supported by the current system.
IsWindow(HWND? hWnd) bool user32
Determines whether the specified window handle identifies an existing window.
IsWindowEnabled(HWND hWnd) bool user32
Determines whether the specified window is enabled for mouse and keyboard input.
IsWindowUnicode(HWND hWnd) bool user32
Determines whether the specified window is a native Unicode window.
IsWindowVisible(HWND hWnd) bool user32
Determines the visibility state of the specified window.
IsWow64Message() bool user32
Determines whether the last message read from the current thread's queue originated from a WOW64 process.
IsZoomed(HWND hWnd) bool user32
Determines whether a window is maximized.
KillTimer(HWND? hWnd, int uIDEvent) Win32Result<bool> user32
Destroys the specified timer.
LoadAccelerators(HINSTANCE? hInstance, PCWSTR lpTableName) Win32Result<HACCEL> user32
Loads the specified accelerator table.
LoadCursor(HINSTANCE? hInstance, PCWSTR lpCursorName) Win32Result<HCURSOR> user32
Loads the specified cursor resource from the executable (.EXE) file associated with an application instance.
LoadCursorFromFile(PCWSTR lpFileName) Win32Result<HCURSOR> user32
Creates a cursor based on data contained in a file.
LoadIcon(HINSTANCE? hInstance, PCWSTR lpIconName) Win32Result<HICON> user32
Loads the specified icon resource from the executable (.exe) file associated with an application instance.
LoadImage(HINSTANCE? hInst, PCWSTR name, GDI_IMAGE_TYPE type, int cx, int cy, IMAGE_FLAGS fuLoad) Win32Result<HANDLE> user32
Loads an icon, cursor, animated cursor, or bitmap.
LoadKeyboardLayout(PCWSTR pwszKLID, ACTIVATE_KEYBOARD_LAYOUT_FLAGS flags) Win32Result<HKL> user32
Loads a new input locale identifier (formerly called the keyboard layout) into the system.
LoadMenu(HINSTANCE? hInstance, PCWSTR lpMenuName) Win32Result<HMENU> user32
Loads the specified menu resource from the executable (.exe) file associated with an application instance.
LoadMenuIndirect(Pointer<NativeType> lpMenuTemplate) Win32Result<HMENU> user32
Loads the specified menu template in memory.
LoadString(HINSTANCE? hInstance, int uID, PWSTR lpBuffer, int cchBufferMax) Win32Result<int> user32
Loads a string resource from the executable file associated with a specified module, copies the string into a buffer, and appends a terminating null character.
LockSetForegroundWindow(FOREGROUND_WINDOW_LOCK_CODE uLockCode) Win32Result<bool> user32
The foreground process can call the LockSetForegroundWindow function to disable calls to the SetForegroundWindow function.
LockWindowUpdate(HWND? hWndLock) bool user32
Disables or enables drawing in the specified window.
LockWorkStation() Win32Result<bool> user32
Locks the workstation's display.
LogicalToPhysicalPoint(HWND hWnd, Pointer<POINT> lpPoint) bool user32
Converts the logical coordinates of a point in a window to physical coordinates.
LogicalToPhysicalPointForPerMonitorDPI(HWND? hWnd, Pointer<POINT> lpPoint) bool user32
Converts a point in a window from logical coordinates into physical coordinates, regardless of the dots per inch (dpi) awareness of the caller.
LookupIconIdFromDirectory(Pointer<Uint8> presbits, bool fIcon) Win32Result<int> user32
Searches through icon or cursor data for the icon or cursor that best fits the current display device.
LookupIconIdFromDirectoryEx(Pointer<Uint8> presbits, bool fIcon, int cxDesired, int cyDesired, IMAGE_FLAGS flags) Win32Result<int> user32
Searches through icon or cursor data for the icon or cursor that best fits the current display device.
MapDialogRect(HWND hDlg, Pointer<RECT> lpRect) Win32Result<bool> user32
Converts the specified dialog box units to screen units (pixels).
MapVirtualKey(int uCode, MAP_VIRTUAL_KEY_TYPE uMapType) int user32
Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
MapVirtualKeyEx(int uCode, MAP_VIRTUAL_KEY_TYPE uMapType, HKL? dwhkl) int user32
Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
MapWindowPoints(HWND? hWndFrom, HWND? hWndTo, Pointer<POINT> lpPoints, int cPoints) int user32
Converts (maps) a set of points from a coordinate space relative to one window to a coordinate space relative to another window.
Determines which menu item, if any, is at the specified location.
MessageBeep(MESSAGEBOX_STYLE uType) Win32Result<bool> user32
Plays a waveform sound.
MessageBox(HWND? hWnd, PCWSTR? lpText, PCWSTR? lpCaption, MESSAGEBOX_STYLE uType) Win32Result<MESSAGEBOX_RESULT> user32
Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information.
MessageBoxEx(HWND? hWnd, PCWSTR? lpText, PCWSTR? lpCaption, MESSAGEBOX_STYLE uType, int wLanguageId) Win32Result<MESSAGEBOX_RESULT> user32
Creates, displays, and operates a message box.
ModifyMenu(HMENU hMnu, int uPosition, MENU_ITEM_FLAGS uFlags, int uIDNewItem, PCWSTR? lpNewItem) Win32Result<bool> user32
Changes an existing menu item.
MonitorFromPoint(POINT pt, MONITOR_FROM_FLAGS dwFlags) HMONITOR user32
Retrieves a handle to the display monitor that contains a specified point.
MonitorFromRect(Pointer<RECT> lprc, MONITOR_FROM_FLAGS dwFlags) HMONITOR user32
Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle.
MonitorFromWindow(HWND hwnd, MONITOR_FROM_FLAGS dwFlags) HMONITOR user32
Retrieves a handle to the display monitor that has the largest area of intersection with the bounding rectangle of a specified window.
MoveWindow(HWND hWnd, int x, int y, int nWidth, int nHeight, bool bRepaint) Win32Result<bool> user32
Changes the position and dimensions of the specified window.
MsgWaitForMultipleObjects(int nCount, Pointer<Pointer<NativeType>>? pHandles, bool fWaitAll, int dwMilliseconds, QUEUE_STATUS_FLAGS dwWakeMask) Win32Result<WAIT_EVENT> user32
Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses.
MsgWaitForMultipleObjectsEx(int nCount, Pointer<Pointer<NativeType>>? pHandles, int dwMilliseconds, QUEUE_STATUS_FLAGS dwWakeMask, MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS dwFlags) Win32Result<WAIT_EVENT> user32
Waits until one or all of the specified objects are in the signaled state, an I/O completion routine or asynchronous procedure call (APC) is queued to the thread, or the time-out interval elapses.
NotifyWinEvent(int event, HWND hwnd, int idObject, int idChild) → void user32
Signals the system that a predefined event occurred.
OemKeyScan(int wOemChar) int user32
Maps OEMASCII codes 0 through 0x0FF into the OEM scan codes and shift states.
OffsetRect(Pointer<RECT> lprc, int dx, int dy) bool user32
Moves the specified rectangle by the specified offsets.
OpenClipboard(HWND? hWndNewOwner) Win32Result<bool> user32
Opens the clipboard for examination and prevents other applications from modifying the clipboard content.
OpenDesktop(PCWSTR lpszDesktop, DESKTOP_CONTROL_FLAGS dwFlags, bool fInherit, int dwDesiredAccess) Win32Result<HDESK> user32
Opens the specified desktop object.
OpenIcon(HWND hWnd) Win32Result<bool> user32
Restores a minimized (iconic) window to its previous size and position; it then activates the window.
OpenInputDesktop(DESKTOP_CONTROL_FLAGS dwFlags, bool fInherit, DESKTOP_ACCESS_FLAGS dwDesiredAccess) Win32Result<HDESK> user32
Opens the desktop that receives user input.
OpenWindowStation(PCWSTR lpszWinSta, bool fInherit, int dwDesiredAccess) Win32Result<HWINSTA> user32
Opens the specified window station.
PaintDesktop(HDC hdc) bool user32
Fills the clipping region in the specified device context with the desktop pattern or wallpaper.
PeekMessage(Pointer<MSG> lpMsg, HWND? hWnd, int wMsgFilterMin, int wMsgFilterMax, PEEK_MESSAGE_REMOVE_TYPE wRemoveMsg) bool user32
Dispatches incoming nonqueued messages, checks the thread message queue for a posted message, and retrieves the message (if any exist).
PhysicalToLogicalPoint(HWND hWnd, Pointer<POINT> lpPoint) bool user32
Converts the physical coordinates of a point in a window to logical coordinates.
PhysicalToLogicalPointForPerMonitorDPI(HWND? hWnd, Pointer<POINT> lpPoint) bool user32
Converts a point in a window from physical coordinates into logical coordinates, regardless of the dots per inch (dpi) awareness of the caller.
PostMessage(HWND? hWnd, int msg, WPARAM wParam, LPARAM lParam) Win32Result<bool> user32
Places (posts) a message in the message queue associated with the thread that created the specified window and returns without waiting for the thread to process the message.
PostQuitMessage(int nExitCode) → void user32
Indicates to the system that a thread has made a request to terminate (quit).
PostThreadMessage(int idThread, int msg, WPARAM wParam, LPARAM lParam) Win32Result<bool> user32
Posts a message to the message queue of the specified thread.
PrintWindow(HWND hwnd, HDC hdcBlt, PRINT_WINDOW_FLAGS nFlags) bool user32
Copies a visual window into the specified device context (DC), typically a printer DC.
PrivateExtractIcons(PCWSTR szFileName, int nIconIndex, int cxIcon, int cyIcon, Pointer<Pointer<NativeType>>? phicon, Pointer<Uint32>? piconid, int nIcons, int flags) int user32
Creates an array of handles to icons that are extracted from a specified file.
PtInRect(Pointer<RECT> lprc, POINT pt) bool user32
Determines whether the specified point lies within the specified rectangle.
RedrawWindow(HWND? hWnd, Pointer<RECT>? lprcUpdate, HRGN? hrgnUpdate, REDRAW_WINDOW_FLAGS flags) bool user32
Updates the specified rectangle or region in a window's client area.
RegisterClass(Pointer<WNDCLASS> lpWndClass) Win32Result<int> user32
Registers a window class for subsequent use in calls to the CreateWindow or CreateWindowEx function.
RegisterClassEx(Pointer<WNDCLASSEX> param0) Win32Result<int> user32
Registers a window class for subsequent use in calls to the CreateWindow or CreateWindowEx function.
RegisterClipboardFormat(PCWSTR lpszFormat) Win32Result<int> user32
Registers a new clipboard format.
RegisterDeviceNotification(HANDLE hRecipient, Pointer<NativeType> notificationFilter, REGISTER_NOTIFICATION_FLAGS flags) Win32Result<HDEVNOTIFY> user32
Registers the device or type of device for which a window will receive notifications.
RegisterHotKey(HWND? hWnd, int id, HOT_KEY_MODIFIERS fsModifiers, int vk) Win32Result<bool> user32
Defines a system-wide hot key.
RegisterPowerSettingNotification(HANDLE hRecipient, Pointer<GUID> powerSettingGuid, REGISTER_NOTIFICATION_FLAGS flags) Win32Result<HPOWERNOTIFY> user32
Registers the application to receive power setting notifications for the specific power setting event.
RegisterRawInputDevices(Pointer<RAWINPUTDEVICE> pRawInputDevices, int uiNumDevices, int cbSize) Win32Result<bool> user32
Registers the devices that supply the raw input data.
RegisterTouchHitTestingWindow(HWND hwnd, int value) Win32Result<bool> user32
Registers a window to process the WM_TOUCHHITTESTING notification.
RegisterTouchWindow(HWND hwnd, REGISTER_TOUCH_WINDOW_FLAGS ulFlags) Win32Result<bool> user32
Registers a window as being touch-capable.
RegisterWindowMessage(PCWSTR lpString) Win32Result<int> user32
Defines a new window message that is guaranteed to be unique throughout the system.
ReleaseCapture() Win32Result<bool> user32
Releases the mouse capture from a window in the current thread and restores normal mouse input processing.
ReleaseDC(HWND? hWnd, HDC hDC) int user32
Releases a device context (DC), freeing it for use by other applications.
RemoveClipboardFormatListener(HWND hwnd) Win32Result<bool> user32
Removes the given window from the system-maintained clipboard format listener list.
RemoveMenu(HMENU hMenu, int uPosition, MENU_ITEM_FLAGS uFlags) Win32Result<bool> user32
Deletes a menu item or detaches a submenu from the specified menu.
RemoveProp(HWND hWnd, PCWSTR lpString) Win32Result<HANDLE> user32
Removes an entry from the property list of the specified window.
ReplyMessage(LRESULT lResult) bool user32
Replies to a message sent from another thread by the SendMessage function.
ScreenToClient(HWND hWnd, Pointer<POINT> lpPoint) bool user32
Converts the screen coordinates of a specified point on the screen to client-area coordinates.
ScrollDC(HDC hDC, int dx, int dy, Pointer<RECT>? lprcScroll, Pointer<RECT>? lprcClip, HRGN? hrgnUpdate, Pointer<RECT>? lprcUpdate) Win32Result<bool> user32
Scrolls a rectangle of bits horizontally and vertically.
ScrollWindow(HWND hWnd, int xAmount, int yAmount, Pointer<RECT>? lpRect, Pointer<RECT>? lpClipRect) Win32Result<bool> user32
Scrolls the contents of the specified window's client area.
ScrollWindowEx(HWND hWnd, int dx, int dy, Pointer<RECT>? prcScroll, Pointer<RECT>? prcClip, HRGN? hrgnUpdate, Pointer<RECT>? prcUpdate, SCROLL_WINDOW_FLAGS flags) Win32Result<int> user32
Scrolls the contents of the specified window's client area.
SendDlgItemMessage(HWND hDlg, int nIDDlgItem, int msg, WPARAM wParam, LPARAM lParam) LRESULT user32
Sends a message to the specified control in a dialog box.
SendInput(int cInputs, Pointer<INPUT> pInputs, int cbSize) Win32Result<int> user32
Synthesizes keystrokes, mouse motions, and button clicks.
SendMessage(HWND hWnd, int msg, WPARAM? wParam, LPARAM? lParam) Win32Result<LRESULT> user32
Sends the specified message to a window or windows.
SendMessageCallback(HWND hWnd, int msg, WPARAM wParam, LPARAM lParam, Pointer<NativeFunction<SENDASYNCPROC>> lpResultCallBack, int dwData) Win32Result<bool> user32
Sends the specified message to a window or windows.
SendMessageTimeout(HWND hWnd, int msg, WPARAM wParam, LPARAM lParam, SEND_MESSAGE_TIMEOUT_FLAGS fuFlags, int uTimeout, Pointer<IntPtr>? lpdwResult) Win32Result<LRESULT> user32
Sends the specified message to one or more windows.
SendNotifyMessage(HWND hWnd, int msg, WPARAM wParam, LPARAM lParam) Win32Result<bool> user32
Sends the specified message to a window or windows.
SetActiveWindow(HWND hWnd) Win32Result<HWND> user32
Activates a window.
SetCapture(HWND hWnd) HWND user32
Sets the mouse capture to the specified window belonging to the current thread.
SetCaretBlinkTime(int uMSeconds) Win32Result<bool> user32
Sets the caret blink time to the specified number of milliseconds.
SetCaretPos(int x, int y) Win32Result<bool> user32
Moves the caret to the specified coordinates.
SetClassLongPtr(HWND hWnd, GET_CLASS_LONG_INDEX nIndex, int dwNewLong) Win32Result<int> user32
Replaces the specified value at the specified offset in the extra class memory or the WNDCLASSEX structure for the class to which the specified window belongs.
SetClipboardData(int uFormat, HANDLE? hMem) Win32Result<HANDLE> user32
Places data on the clipboard in a specified clipboard format.
SetClipboardViewer(HWND hWndNewViewer) Win32Result<HWND> user32
Adds the specified window to the chain of clipboard viewers.
SetCoalescableTimer(HWND? hWnd, int nIDEvent, int uElapse, Pointer<NativeFunction<TIMERPROC>>? lpTimerFunc, int uToleranceDelay) Win32Result<int> user32
Creates a timer with the specified time-out value and coalescing tolerance delay.
SetCursor(HCURSOR? hCursor) HCURSOR user32
Sets the cursor shape.
SetCursorPos(int x, int y) Win32Result<bool> user32
Moves the cursor to the specified screen coordinates.
SetDialogControlDpiChangeBehavior(HWND hWnd, DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS mask, DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS values) Win32Result<bool> user32
Overrides the default per-monitor DPI scaling behavior of a child window in a dialog.
SetDialogDpiChangeBehavior(HWND hDlg, DIALOG_DPI_CHANGE_BEHAVIORS mask, DIALOG_DPI_CHANGE_BEHAVIORS values) Win32Result<bool> user32
Dialogs in Per-Monitor v2 contexts are automatically DPI scaled.
SetDisplayAutoRotationPreferences(ORIENTATION_PREFERENCE orientation) bool user32
Sets the screen auto-rotation preferences for the current process.
SetDisplayConfig(int numPathArrayElements, Pointer<DISPLAYCONFIG_PATH_INFO>? pathArray, int numModeInfoArrayElements, Pointer<DISPLAYCONFIG_MODE_INFO>? modeInfoArray, SET_DISPLAY_CONFIG_FLAGS flags) int user32
Modifies the display topology, source, and target modes by exclusively enabling the specified paths in the current session.
SetDlgItemInt(HWND hDlg, int nIDDlgItem, int uValue, bool bSigned) Win32Result<bool> user32
Sets the text of a control in a dialog box to the string representation of a specified integer value.
SetDlgItemText(HWND hDlg, int nIDDlgItem, PCWSTR lpString) Win32Result<bool> user32
Sets the title or text of a control in a dialog box.
SetDoubleClickTime(int param0) Win32Result<bool> user32
Sets the double-click time for the mouse.
SetFocus(HWND? hWnd) Win32Result<HWND> user32
Sets the keyboard focus to the specified window.
SetForegroundWindow(HWND hWnd) bool user32
Brings the thread that created the specified window into the foreground and activates the window.
SetGestureConfig(HWND hwnd, int cIDs, Pointer<GESTURECONFIG> pGestureConfig, int cbSize) Win32Result<bool> user32
Configures the messages that are sent from a window for Windows Touch gestures.
SetKeyboardState(Pointer<Uint8> lpKeyState) Win32Result<bool> user32
Copies an array of keyboard key states into the calling thread's keyboard input-state table.
SetLayeredWindowAttributes(HWND hwnd, COLORREF crKey, int bAlpha, LAYERED_WINDOW_ATTRIBUTES_FLAGS dwFlags) Win32Result<bool> user32
Sets the opacity and transparency color key of a layered window.
SetMenu(HWND hWnd, HMENU? hMenu) Win32Result<bool> user32
Assigns a new menu to the specified window.
SetMenuDefaultItem(HMENU hMenu, int uItem, int fByPos) Win32Result<bool> user32
Sets the default menu item for the specified menu.
SetMenuInfo(HMENU param0, Pointer<MENUINFO> param1) Win32Result<bool> user32
Sets information for a specified menu.
SetMenuItemBitmaps(HMENU hMenu, int uPosition, MENU_ITEM_FLAGS uFlags, HBITMAP? hBitmapUnchecked, HBITMAP? hBitmapChecked) Win32Result<bool> user32
Associates the specified bitmap with a menu item.
SetMenuItemInfo(HMENU hmenu, int item, bool fByPositon, Pointer<MENUITEMINFO> lpmii) Win32Result<bool> user32
Changes information about a menu item.
SetMessageExtraInfo(LPARAM lParam) LPARAM user32
Sets the extra message information for the current thread.
SetParent(HWND hWndChild, HWND? hWndNewParent) Win32Result<HWND> user32
Changes the parent window of the specified child window.
SetPhysicalCursorPos(int x, int y) Win32Result<bool> user32
Sets the position of the cursor in physical coordinates.
SetProcessDPIAware() bool user32
Sets the process-default DPI awareness to system-DPI awareness.
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT value) Win32Result<bool> user32
Sets the current process to a specified dots per inch (dpi) awareness context.
SetProp(HWND hWnd, PCWSTR lpString, HANDLE? hData) Win32Result<bool> user32
Adds a new entry or changes an existing entry in the property list of the specified window.
SetRect(Pointer<RECT> lprc, int xLeft, int yTop, int xRight, int yBottom) bool user32
Sets the coordinates of the specified rectangle.
SetRectEmpty(Pointer<RECT> lprc) bool user32
Creates an empty rectangle in which all coordinates are set to zero.
SetScrollInfo(HWND hwnd, SCROLLBAR_CONSTANTS nBar, Pointer<SCROLLINFO> lpsi, bool redraw) int user32
Sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
SetSysColors(int cElements, Pointer<Int32> lpaElements, Pointer<Uint32> lpaRgbValues) Win32Result<bool> user32
Sets the colors for the specified display elements.
SetSystemCursor(HCURSOR hcur, SYSTEM_CURSOR_ID id) Win32Result<bool> user32
Enables an application to customize the system cursors.
SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT dpiContext) DPI_AWARENESS_CONTEXT user32
Set the DPI awareness for the current thread to the provided value.
SetThreadDpiHostingBehavior(DPI_HOSTING_BEHAVIOR value) DPI_HOSTING_BEHAVIOR user32
Sets the thread's DPI_HOSTING_BEHAVIOR.
SetTimer(HWND? hWnd, int nIDEvent, int uElapse, Pointer<NativeFunction<TIMERPROC>>? lpTimerFunc) Win32Result<int> user32
Creates a timer with the specified time-out value.
SetUserObjectInformation(HANDLE hObj, int nIndex, Pointer<NativeType> pvInfo, int nLength) Win32Result<bool> user32
Sets information about the specified window station or desktop object.
SetWindowCompositionAttribute(HWND hwnd, Pointer<WINDOWCOMPOSITIONATTRIBDATA> pwcad) bool user32
Sets the current value of a specified Desktop Window Manager (DWM) attribute applied to a window.
SetWindowDisplayAffinity(HWND hWnd, WINDOW_DISPLAY_AFFINITY dwAffinity) Win32Result<bool> user32
Stores the display affinity setting in kernel mode on the hWnd associated with the window.
SetWindowLongPtr(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex, int dwNewLong) Win32Result<int> user32
Changes an attribute of the specified window.
SetWindowPlacement(HWND hWnd, Pointer<WINDOWPLACEMENT> lpwndpl) Win32Result<bool> user32
Sets the show state and the restored, minimized, and maximized positions of the specified window.
SetWindowPos(HWND hWnd, HWND? hWndInsertAfter, int x, int y, int cx, int cy, SET_WINDOW_POS_FLAGS uFlags) Win32Result<bool> user32
Changes the size, position, and Z order of a child, pop-up, or top-level window.
SetWindowRgn(HWND hWnd, HRGN? hRgn, bool bRedraw) int user32
Sets the window region of a window.
SetWindowsHookEx(WINDOWS_HOOK_ID idHook, Pointer<NativeFunction<HOOKPROC>> lpfn, HINSTANCE? hmod, int dwThreadId) Win32Result<HHOOK> user32
Installs an application-defined hook procedure into a hook chain.
SetWindowText(HWND hWnd, PCWSTR? lpString) Win32Result<bool> user32
Changes the text of the specified window's title bar (if it has one).
ShowCaret(HWND? hWnd) Win32Result<bool> user32
Makes the caret visible on the screen at the caret's current position.
ShowCursor(bool bShow) int user32
Displays or hides the cursor.
ShowOwnedPopups(HWND hWnd, bool fShow) Win32Result<bool> user32
Shows or hides all pop-up windows owned by the specified window.
ShowWindow(HWND hWnd, SHOW_WINDOW_CMD nCmdShow) bool user32
Sets the specified window's show state.
ShowWindowAsync(HWND hWnd, SHOW_WINDOW_CMD nCmdShow) bool user32
Sets the show state of a window without waiting for the operation to complete.
SkipPointerFrameMessages(int pointerId) Win32Result<bool> user32
Determines which pointer input frame generated the most recently retrieved message for the specified pointer and discards any queued (unretrieved) pointer input messages generated from the same pointer input frame.
SoundSentry() bool user32
Triggers a visual signal to indicate that a sound is playing.
SubtractRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) bool user32
Determines the coordinates of a rectangle formed by subtracting one rectangle from another.
SwapMouseButton(bool fSwap) bool user32
Reverses or restores the meaning of the left and right mouse buttons.
SwitchDesktop(HDESK hDesktop) Win32Result<bool> user32
Makes the specified desktop visible and activates it.
SwitchToThisWindow(HWND hwnd, bool fUnknown) → void user32
Switches focus to the specified window and brings it to the foreground.
SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION uiAction, int uiParam, Pointer<NativeType>? pvParam, SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS fWinIni) Win32Result<bool> user32
Retrieves or sets the value of one of the system-wide parameters.
SystemParametersInfoForDpi(int uiAction, int uiParam, Pointer<NativeType>? pvParam, int fWinIni, int dpi) Win32Result<bool> user32
Retrieves the value of one of the system-wide parameters, taking into account the provided DPI value.
TabbedTextOut(HDC hdc, int x, int y, PCWSTR lpString, int chCount, int nTabPositions, Pointer<Int32>? lpnTabStopPositions, int nTabOrigin) int user32
Writes a character string at a specified location, expanding tabs to the values specified in an array of tab-stop positions.
TileWindows(HWND? hwndParent, TILE_WINDOWS_HOW wHow, Pointer<RECT>? lpRect, int cKids, Pointer<Pointer<NativeType>>? lpKids) Win32Result<int> user32
Tiles the specified child windows of the specified parent window.
ToAscii(int uVirtKey, int uScanCode, Pointer<Uint8>? lpKeyState, Pointer<Uint16> lpChar, int uFlags) int user32
Translates the specified virtual-key code and keyboard state to the corresponding character or characters.
ToAsciiEx(int uVirtKey, int uScanCode, Pointer<Uint8>? lpKeyState, Pointer<Uint16> lpChar, int uFlags, HKL? dwhkl) int user32
Translates the specified virtual-key code and keyboard state to the corresponding character or characters.
ToUnicode(int wVirtKey, int wScanCode, Pointer<Uint8>? lpKeyState, PWSTR pwszBuff, int cchBuff, int wFlags) int user32
Translates the specified virtual-key code and keyboard state to the corresponding Unicode character or characters.
ToUnicodeEx(int wVirtKey, int wScanCode, Pointer<Uint8> lpKeyState, PWSTR pwszBuff, int cchBuff, int wFlags, HKL? dwhkl) int user32
Translates the specified virtual-key code and keyboard state to the corresponding Unicode character or characters.
TrackPopupMenu(HMENU hMenu, TRACK_POPUP_MENU_FLAGS uFlags, int x, int y, HWND hWnd, Pointer<RECT>? prcRect) Win32Result<bool> user32
Displays a shortcut menu at the specified location and tracks the selection of items on the menu.
TrackPopupMenuEx(HMENU hMenu, int uFlags, int x, int y, HWND hwnd, Pointer<TPMPARAMS>? lptpm) Win32Result<bool> user32
Displays a shortcut menu at the specified location and tracks the selection of items on the shortcut menu.
TranslateAccelerator(HWND hWnd, HACCEL hAccTable, Pointer<MSG> lpMsg) Win32Result<int> user32
Processes accelerator keys for menu commands.
TranslateMDISysAccel(HWND hWndClient, Pointer<MSG> lpMsg) bool user32
Processes accelerator keystrokes for window menu commands of the multiple-document interface (MDI) child windows associated with the specified MDI client window.
TranslateMessage(Pointer<MSG> lpMsg) bool user32
Translates virtual-key messages into character messages.
UnhookWindowsHookEx(HHOOK hhk) Win32Result<bool> user32
Removes a hook procedure installed in a hook chain by the SetWindowsHookEx function.
UnionRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) bool user32
Creates the union of two rectangles.
UnloadKeyboardLayout(HKL hkl) Win32Result<bool> user32
Unloads an input locale identifier (formerly called a keyboard layout).
UnregisterClass(PCWSTR lpClassName, HINSTANCE? hInstance) Win32Result<bool> user32
Unregisters a window class, freeing the memory required for the class.
UnregisterDeviceNotification(HDEVNOTIFY handle) Win32Result<bool> user32
Closes the specified device notification handle.
UnregisterHotKey(HWND? hWnd, int id) Win32Result<bool> user32
Frees a hot key previously registered by the calling thread.
UnregisterPowerSettingNotification(HPOWERNOTIFY handle) Win32Result<bool> user32
Unregisters the power setting notification.
UnregisterTouchWindow(HWND hwnd) Win32Result<bool> user32
Registers a window as no longer being touch-capable.
UpdateLayeredWindowIndirect(HWND hWnd, Pointer<UPDATELAYEREDWINDOWINFO> pULWInfo) bool user32
Updates the position, size, shape, content, and translucency of a layered window.
UpdateWindow(HWND hWnd) bool user32
Updates the client area of the specified window by sending a WM_PAINT message to the window if the window's update region is not empty.
UserHandleGrantAccess(HANDLE hUserHandle, HANDLE hJob, bool bGrant) Win32Result<bool> user32
Grants or denies access to a handle to a User object to a job that has a user-interface restriction.
ValidateRect(HWND? hWnd, Pointer<RECT>? lpRect) bool user32
Validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
ValidateRgn(HWND hWnd, HRGN? hRgn) bool user32
Validates the client area within a region by removing the region from the current update region of the specified window.
VkKeyScan(int ch) int user32
Translates a character to the corresponding virtual-key code and shift state for the current keyboard.
VkKeyScanEx(int ch, HKL dwhkl) int user32
Translates a character to the corresponding virtual-key code and shift state.
WaitForInputIdle(HANDLE hProcess, int dwMilliseconds) int user32
Waits until the specified process has finished processing its initial input and is waiting for user input with no input pending, or until the time-out interval has elapsed.
WaitMessage() Win32Result<bool> user32
Yields control to other threads when a thread has no other messages in its message queue.
WindowFromDC(HDC hDC) HWND user32
Returns a handle to the window associated with the specified display device context (DC).
WindowFromPhysicalPoint(POINT point) HWND user32
Retrieves a handle to the window that contains the specified physical point.
WindowFromPoint(POINT point) HWND user32
Retrieves a handle to the window that contains the specified point.