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(int hkl, int Flags) int user32
Sets the input locale identifier (formerly called the keyboard layout handle) for the calling thread or the current process. The input locale identifier specifies a locale as well as the physical layout of the keyboard. [...]
AddClipboardFormatListener(int hwnd) int user32
Places the given window in the system-maintained clipboard format listener list. [...]
AdjustWindowRect(Pointer<RECT> lpRect, int dwStyle, int bMenu) int user32
Calculates the required size of the window rectangle, based on the desired client-rectangle size. The window rectangle can then be passed to the CreateWindow function to create a window whose client area is the desired size. [...]
AdjustWindowRectEx(Pointer<RECT> lpRect, int dwStyle, int bMenu, int dwExStyle) int user32
Calculates the required size of the window rectangle, based on the desired size of the client rectangle. The window rectangle can then be passed to the CreateWindowEx function to create a window whose client area is the desired size. [...]
AdjustWindowRectExForDpi(Pointer<RECT> lpRect, int dwStyle, int bMenu, int dwExStyle, int dpi) int user32
Calculates the required size of the window rectangle, based on the desired size of the client rectangle and the provided DPI. This window rectangle can then be passed to the CreateWindowEx function to create a window with a client area of the desired size. [...]
AllowSetForegroundWindow(int dwProcessId) int user32
Enables the specified process to set the foreground window using the SetForegroundWindow function. The calling process must already be able to set the foreground window. [...]
AnimateWindow(int hWnd, int dwTime, int dwFlags) int user32
Enables you to produce special effects when showing or hiding windows. There are four types of animation: roll, slide, collapse or expand, and alpha-blended fade. [...]
AnyPopup() int user32
Indicates whether an owned, visible, top-level pop-up, or overlapped window exists on the screen. The function searches the entire screen, not just the calling application's client area. [...]
AppendMenu(int hMenu, int uFlags, int uIDNewItem, Pointer<Utf16> lpNewItem) int user32
Appends a new item to the end of the specified menu bar, drop-down menu, submenu, or shortcut menu. You can use this function to specify the content, appearance, and behavior of the menu item. [...]
AreDpiAwarenessContextsEqual(int dpiContextA, int dpiContextB) int user32
Determines whether two DPI_AWARENESS_CONTEXT values are identical. [...]
ArrangeIconicWindows(int hWnd) int user32
Arranges all the minimized (iconic) child windows of the specified parent window. [...]
AttachThreadInput(int idAttach, int idAttachTo, int fAttach) int user32
Attaches or detaches the input processing mechanism of one thread to that of another thread. [...]
BeginDeferWindowPos(int nNumWindows) int user32
Allocates memory for a multiple-window- position structure and returns the handle to the structure. [...]
BeginPaint(int hWnd, Pointer<PAINTSTRUCT> lpPaint) int user32
The BeginPaint function prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting. [...]
BlockInput(int fBlockIt) int user32
Blocks keyboard and mouse input events from reaching applications. [...]
BringWindowToTop(int hWnd) int user32
Brings the specified window to the top of the Z order. If the window is a top-level window, it is activated. If the window is a child window, the top-level parent window associated with the child window is activated. [...]
BroadcastSystemMessage(int flags, Pointer<Uint32> lpInfo, int Msg, int wParam, int lParam) int user32
Sends a message to the specified recipients. The recipients can be applications, installable drivers, network drivers, system-level device drivers, or any combination of these system components. [...]
BroadcastSystemMessageEx(int flags, Pointer<Uint32> lpInfo, int Msg, int wParam, int lParam, Pointer<BSMINFO> pbsmInfo) int user32
Sends a message to the specified recipients. The recipients can be applications, installable drivers, network drivers, system-level device drivers, or any combination of these system components. [...]
CalculatePopupWindowPosition(Pointer<POINT> anchorPoint, Pointer<SIZE> windowSize, int flags, Pointer<RECT> excludeRect, Pointer<RECT> popupWindowPosition) int user32
Calculates an appropriate pop-up window position using the specified anchor point, pop-up window size, flags, and the optional exclude rectangle. When the specified pop-up window size is smaller than the desktop window size, use the CalculatePopupWindowPosition function to ensure that the pop-up window is fully visible on the desktop window, regardless of the specified anchor point. [...]
CallMsgFilter(Pointer<MSG> lpMsg, int nCode) int user32
Passes the specified message and hook code to the hook procedures associated with the WH_SYSMSGFILTER and WH_MSGFILTER hooks. A WH_SYSMSGFILTER or WH_MSGFILTER hook procedure is an application-defined callback function that examines and, optionally, modifies messages for a dialog box, message box, menu, or scroll bar. [...]
CallNextHookEx(int hhk, int nCode, int wParam, int lParam) int user32
Passes the hook information to the next hook procedure in the current hook chain. A hook procedure can call this function either before or after processing the hook information. [...]
CallWindowProc(Pointer<NativeFunction<WindowProc>> lpPrevWndFunc, int hWnd, int Msg, int wParam, int lParam) int user32
Passes message information to the specified window procedure. [...]
CascadeWindows(int hwndParent, int wHow, Pointer<RECT> lpRect, int cKids, Pointer<IntPtr> lpKids) int user32
Cascades the specified child windows of the specified parent window. [...]
ChangeClipboardChain(int hWndRemove, int hWndNewNext) int user32
Removes a specified window from the chain of clipboard viewers. [...]
ChangeDisplaySettings(Pointer<DEVMODE> lpDevMode, int dwFlags) int user32
The ChangeDisplaySettings function changes the settings of the default display device to the specified graphics mode. [...]
ChangeDisplaySettingsEx(Pointer<Utf16> lpszDeviceName, Pointer<DEVMODE> lpDevMode, int hwnd, int dwflags, Pointer<NativeType> lParam) int user32
The ChangeDisplaySettingsEx function changes the settings of the specified display device to the specified graphics mode. [...]
ChangeWindowMessageFilter(int message, int dwFlag) int user32
Adds or removes a message from the User Interface Privilege Isolation (UIPI) message filter. [...]
ChangeWindowMessageFilterEx(int hwnd, int message, int action, Pointer<CHANGEFILTERSTRUCT> pChangeFilterStruct) int user32
Modifies the User Interface Privilege Isolation (UIPI) message filter for a specified window. [...]
CheckDlgButton(int hDlg, int nIDButton, int uCheck) int user32
Changes the check state of a button control. [...]
CheckRadioButton(int hDlg, int nIDFirstButton, int nIDLastButton, int nIDCheckButton) int 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(int hWndParent, POINT Point) int user32
Determines which, if any, of the child windows belonging to a parent window contains the specified point. The search is restricted to immediate child windows. Grandchildren, and deeper descendant windows are not searched. [...]
ChildWindowFromPointEx(int hwnd, POINT pt, int flags) int user32
Determines which, if any, of the child windows belonging to the specified parent window contains the specified point. The function can ignore invisible, disabled, and transparent child windows. Grandchildren and deeper descendants are not searched. [...]
ClientToScreen(int hWnd, Pointer<POINT> lpPoint) int user32
The ClientToScreen function converts the client-area coordinates of a specified point to screen coordinates. [...]
ClipCursor(Pointer<RECT> lpRect) int user32
Confines the cursor to a rectangular area on the screen. If a subsequent cursor position (set by the SetCursorPos function or the mouse) lies outside the rectangle, the system automatically adjusts the position to keep the cursor inside the rectangular area. [...]
CloseClipboard() int user32
Closes the clipboard. [...]
CloseGestureInfoHandle(int hGestureInfo) int user32
Closes resources associated with a gesture information handle. [...]
CloseTouchInputHandle(int hTouchInput) int user32
Closes a touch input handle, frees process memory associated with it, and invalidates the handle. [...]
CloseWindow(int hWnd) int user32
Minimizes (but does not destroy) the specified window. [...]
CopyAcceleratorTable(int hAccelSrc, Pointer<ACCEL> lpAccelDst, int cAccelEntries) int user32
Copies the specified accelerator table. This function is used to obtain the accelerator-table data that corresponds to an accelerator-table handle, or to determine the size of the accelerator-table data. [...]
CopyIcon(int hIcon) int user32
Copies the specified icon from another module to the current module. [...]
CopyImage(int h, int type, int cx, int cy, int flags) int user32
Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one. If necessary, the function stretches the bits to fit the desired size of the new image. [...]
CopyRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc) int user32
The CopyRect function copies the coordinates of one rectangle to another. [...]
CountClipboardFormats() int user32
Retrieves the number of different data formats currently on the clipboard. [...]
CreateAcceleratorTable(Pointer<ACCEL> paccel, int cAccel) int user32
Creates an accelerator table. [...]
CreateDesktop(Pointer<Utf16> lpszDesktop, Pointer<Utf16> lpszDevice, Pointer<DEVMODE> pDevmode, int dwFlags, int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES> lpsa) int user32
Creates a new desktop, associates it with the current window station of the calling process, and assigns it to the calling thread. The calling process must have an associated window station, either assigned by the system at process creation time or set by the SetProcessWindowStation function. [...]
CreateDesktopEx(Pointer<Utf16> lpszDesktop, Pointer<Utf16> lpszDevice, Pointer<DEVMODE> pDevmode, int dwFlags, int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES> lpsa, int ulHeapSize, Pointer<NativeType> pvoid) int 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. The calling process must have an associated window station, either assigned by the system at process creation time or set by the SetProcessWindowStation function. [...]
CreateDialogIndirectParam(int hInstance, Pointer<DLGTEMPLATE> lpTemplate, int hWndParent, Pointer<NativeFunction<DlgProc>> lpDialogFunc, int dwInitParam) int user32
Creates a modeless dialog box from a dialog box template in memory. Before displaying the dialog box, the function passes an application-defined value to the dialog box procedure as the lParam parameter of the WM_INITDIALOG message. An application can use this value to initialize dialog box controls. [...]
CreateMDIWindow(Pointer<Utf16> lpClassName, Pointer<Utf16> lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hWndParent, int hInstance, int lParam) int user32
Creates a multiple-document interface (MDI) child window. [...]
CreateMenu() int user32
Creates a menu. The menu is initially empty, but it can be filled with menu items by using the InsertMenuItem, AppendMenu, and InsertMenu functions. [...]
CreateWindow(Pointer<Utf16> lpClassName, Pointer<Utf16> lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hWndParent, int hMenu, int hInstance, Pointer<NativeType> lpParam) int user32
Creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and (optionally) the initial position and size of the window. The function also specifies the window's parent or owner, if any, and the window's menu. [...]
CreateWindowEx(int dwExStyle, Pointer<Utf16> lpClassName, Pointer<Utf16> lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hWndParent, int hMenu, int hInstance, Pointer<NativeType> lpParam) int user32
Creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and (optionally) the initial position and size of the window. The function also specifies the window's parent or owner, if any, and the window's menu. [...]
CreateWindowStation(Pointer<Utf16> lpwinsta, int dwFlags, int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES> lpsa) int user32
Creates a window station object, associates it with the calling process, and assigns it to the current session. [...]
DeferWindowPos(int hWinPosInfo, int hWnd, int hWndInsertAfter, int x, int y, int cx, int cy, int uFlags) int user32
Updates the specified multiple-window – position structure for the specified window. The function then returns a handle to the updated structure. The EndDeferWindowPos function uses the information in this structure to change the position and size of a number of windows simultaneously. The BeginDeferWindowPos function creates the structure. [...]
DefMDIChildProc(int hWnd, int uMsg, int wParam, int lParam) int user32
Provides default processing for any window message that the window procedure of a multiple-document interface (MDI) child window does not process. A window message not processed by the window procedure must be passed to the DefMDIChildProc function, not to the DefWindowProc function. [...]
DefWindowProc(int hWnd, int Msg, int wParam, int lParam) int user32
Calls the default window procedure to provide default processing for any window messages that an application does not process. This function ensures that every message is processed. DefWindowProc is called with the same parameters received by the window procedure. [...]
DeleteMenu(int hMenu, int uPosition, int uFlags) int user32
Deletes an item from the specified menu. If the menu item opens a menu or submenu, this function destroys the handle to the menu or submenu and frees the memory used by the menu or submenu. [...]
DestroyCursor(int hCursor) int user32
Destroys a cursor and frees any memory the cursor occupied. Do not use this function to destroy a shared cursor. [...]
DestroyIcon(int hIcon) int user32
Destroys an icon and frees any memory the icon occupied. [...]
DestroyMenu(int hMenu) int user32
Destroys the specified menu and frees any memory that the menu occupies. [...]
DestroyWindow(int hWnd) int user32
Destroys the specified window. The function sends WM_DESTROY and WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus from it. The function also destroys the window's menu, flushes the thread message queue, destroys timers, removes clipboard ownership, and breaks the clipboard viewer chain (if the window is at the top of the viewer chain). [...]
DialogBoxIndirect(int hInstance, Pointer<DLGTEMPLATE> lpTemplate, int hWndParent, Pointer<NativeFunction<DlgProc>> lpDialogFunc) → void user32
Creates a modal dialog box from a dialog box template in memory. DialogBoxIndirect does not return control until the specified callback function terminates the modal dialog box by calling the EndDialog function. [...]
DialogBoxIndirectParam(int hInstance, Pointer<DLGTEMPLATE> hDialogTemplate, int hWndParent, Pointer<NativeFunction<DlgProc>> lpDialogFunc, int dwInitParam) int user32
Creates a modal dialog box from a dialog box template in memory. Before displaying the dialog box, the function passes an application-defined value to the dialog box procedure as the lParam parameter of the WM_INITDIALOG message. An application can use this value to initialize dialog box controls. [...]
DisableProcessWindowsGhosting() → void user32
Disables the window ghosting feature for the calling GUI process. Window ghosting is a Windows Manager feature that lets the user minimize, move, or close the main window of an application that is not responding. [...]
DispatchMessage(Pointer<MSG> lpMsg) int user32
Dispatches a message to a window procedure. It is typically used to dispatch a message retrieved by the GetMessage function. [...]
DragDetect(int hwnd, POINT pt) int 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. [...]
DrawCaption(int hwnd, int hdc, Pointer<RECT> lprect, int flags) int user32
The DrawCaption function draws a window caption. [...]
DrawIcon(int hDC, int X, int Y, int hIcon) int user32
Draws an icon or cursor into the specified device context. [...]
DrawText(int hdc, Pointer<Utf16> lpchText, int cchText, Pointer<RECT> lprc, int format) int user32
The DrawText function draws formatted text in the specified rectangle. It formats the text according to the specified method (expanding tabs, justifying characters, breaking lines, and so forth). [...]
DrawTextEx(int hdc, Pointer<Utf16> lpchText, int cchText, Pointer<RECT> lprc, int format, Pointer<DRAWTEXTPARAMS> lpdtp) int user32
The DrawTextEx function draws formatted text in the specified rectangle. [...]
EmptyClipboard() int user32
Empties the clipboard and frees handles to data in the clipboard. The function then assigns ownership of the clipboard to the window that currently has the clipboard open. [...]
EnableMenuItem(int hMenu, int uIDEnableItem, int uEnable) int user32
Enables, disables, or grays the specified menu item. [...]
EnableNonClientDpiScaling(int hwnd) int user32
In high-DPI displays, enables automatic display scaling of the non-client area portions of the specified top-level window. Must be called during the initialization of that window. [...]
EnableScrollBar(int hWnd, int wSBflags, int wArrows) int user32
The EnableScrollBar function enables or disables one or both scroll bar arrows. [...]
EnableWindow(int hWnd, int bEnable) int user32
Enables or disables mouse and keyboard input to the specified window or control. When input is disabled, the window does not receive input such as mouse clicks and key presses. When input is enabled, the window receives all input. [...]
EndDeferWindowPos(int hWinPosInfo) int user32
Simultaneously updates the position and size of one or more windows in a single screen-refreshing cycle. [...]
EndDialog(int hDlg, int nResult) int user32
Destroys a modal dialog box, causing the system to end any processing for the dialog box. [...]
EndMenu() int user32
Ends the calling thread's active menu. [...]
EndPaint(int hWnd, Pointer<PAINTSTRUCT> lpPaint) int user32
The EndPaint function marks the end of painting in the specified window. This function is required for each call to the BeginPaint function, but only after painting is complete. [...]
EnumChildWindows(int hWndParent, Pointer<NativeFunction<EnumWindowsProc>> lpEnumFunc, int lParam) int 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. EnumChildWindows continues until the last child window is enumerated or the callback function returns FALSE. [...]
EnumClipboardFormats(int format) int user32
Enumerates the data formats currently available on the clipboard. [...]
EnumDesktopWindows(int hDesktop, Pointer<NativeFunction<EnumWindowsProc>> lpfn, int lParam) int user32
Enumerates all top-level windows associated with the specified desktop. It passes the handle to each window, in turn, to an application-defined callback function. [...]
EnumDisplayMonitors(int hdc, Pointer<RECT> lprcClip, Pointer<NativeFunction<MonitorEnumProc>> lpfnEnum, int dwData) int user32
The EnumDisplayMonitors function 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. EnumDisplayMonitors calls an application-defined MonitorEnumProc callback function once for each monitor that is enumerated. Note that GetSystemMetrics (SM_CMONITORS) counts only the display monitors. [...]
EnumThreadWindows(int dwThreadId, Pointer<NativeFunction<EnumWindowsProc>> lpfn, int lParam) int user32
Enumerates all nonchild windows associated with a thread by passing the handle to each window, in turn, to an application-defined callback function. EnumThreadWindows continues until the last window is enumerated or the callback function returns FALSE. [...]
EnumWindows(Pointer<NativeFunction<EnumWindowsProc>> lpEnumFunc, int lParam) int user32
Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE. [...]
EqualRect(Pointer<RECT> lprc1, Pointer<RECT> lprc2) int user32
The EqualRect function determines whether the two specified rectangles are equal by comparing the coordinates of their upper-left and lower-right corners. [...]
ExcludeUpdateRgn(int hDC, int hWnd) int user32
The ExcludeUpdateRgn function prevents drawing within invalid areas of a window by excluding an updated region in the window from a clipping region. [...]
FillRect(int hDC, Pointer<RECT> lprc, int hbr) int user32
The FillRect function fills a rectangle by using the specified brush. This function includes the left and top borders, but excludes the right and bottom borders of the rectangle. [...]
FindWindow(Pointer<Utf16> lpClassName, Pointer<Utf16> lpWindowName) int user32
Retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search. [...]
FindWindowEx(int hWndParent, int hWndChildAfter, Pointer<Utf16> lpszClass, Pointer<Utf16> lpszWindow) int user32
Retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window. This function does not perform a case-sensitive search. [...]
FrameRect(int hDC, Pointer<RECT> lprc, int hbr) int user32
The FrameRect function draws a border around the specified rectangle by using the specified brush. The width and height of the border are always one logical unit. [...]
GET_SC_WPARAM(int wParam) int user32
Retrieves the parameters to WM_SYSCOMMAND.
GetActiveWindow() int user32
Retrieves the window handle to the active window attached to the calling thread's message queue. [...]
GetAncestor(int hwnd, int gaFlags) int 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(int value) int user32
Retrieves the DPI_AWARENESS value from a DPI_AWARENESS_CONTEXT. [...]
GetCapture() int user32
Retrieves a handle to the window (if any) that has captured the mouse. Only one window at a time can capture the mouse; this window receives mouse input whether or not the cursor is within its borders. [...]
GetCaretBlinkTime() int user32
Retrieves the time required to invert the caret's pixels. The user can set this value. [...]
GetCaretPos(Pointer<POINT> lpPoint) int user32
Copies the caret's position to the specified POINT structure. [...]
GetClassInfo(int hInstance, Pointer<Utf16> lpClassName, Pointer<WNDCLASS> lpWndClass) int user32
Retrieves information about a window class. [...]
GetClassInfoEx(int hInstance, Pointer<Utf16> lpszClass, Pointer<WNDCLASSEX> lpwcx) int user32
Retrieves information about a window class, including a handle to the small icon associated with the window class. The GetClassInfo function does not retrieve a handle to the small icon. [...]
GetClassLongPtr(int hWnd, int nIndex) int user32
Retrieves the specified value from the WNDCLASSEX structure associated with the specified window. [...]
GetClientRect(int hWnd, Pointer<RECT> lpRect) int user32
Retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0). [...]
GetClipboardData(int uFormat) int user32
Retrieves data from the clipboard in a specified format. The clipboard must have been opened previously. [...]
GetClipboardFormatName(int format, Pointer<Utf16> lpszFormatName, int cchMaxCount) int user32
Retrieves from the clipboard the name of the specified registered format. The function copies the name to the specified buffer. [...]
GetClipboardOwner() int 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() int user32
Retrieves the handle to the first window in the clipboard viewer chain. [...]
GetClipCursor(Pointer<RECT> lpRect) int user32
Retrieves the screen coordinates of the rectangular area to which the cursor is confined. [...]
GetCursor() int user32
Retrieves a handle to the current cursor. [...]
GetCursorInfo(Pointer<CURSORINFO> pci) int user32
Retrieves information about the global cursor. [...]
GetCursorPos(Pointer<POINT> lpPoint) int user32
Retrieves the position of the mouse cursor, in screen coordinates. [...]
GetDC(int hWnd) int user32
The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The device context is an opaque data structure, whose values are used internally by GDI. [...]
GetDCEx(int hWnd, int hrgnClip, int flags) int user32
The GetDCEx function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The device context is an opaque data structure, whose values are used internally by GDI. [...]
GetDesktopWindow() int user32
Retrieves a handle to the desktop window. The desktop window covers the entire screen. The desktop window is the area on top of which other windows are painted. [...]
GetDialogBaseUnits() int user32
Retrieves the system's dialog base units, which are the average width and height of characters in the system font. For dialog boxes that use the system font, you can use these values to convert between dialog template units, as specified in dialog box templates, and pixels. For dialog boxes that do not use the system font, the conversion from dialog template units to pixels depends on the font used by the dialog box. [...]
GetDialogControlDpiChangeBehavior(int hWnd) int user32
Retrieves and per-monitor DPI scaling behavior overrides of a child window in a dialog. [...]
GetDialogDpiChangeBehavior(int hDlg) int user32
Returns the flags that might have been set on a given dialog by an earlier call to SetDialogDpiChangeBehavior. If that function was never called on the dialog, the return value will be zero. [...]
GetDisplayAutoRotationPreferences(Pointer<Uint32> pOrientation) int user32
Retrieves the screen auto-rotation preferences for the current process. [...]
GetDlgItem(int hDlg, int nIDDlgItem) int user32
Retrieves a handle to a control in the specified dialog box. [...]
GetDlgItemInt(int hDlg, int nIDDlgItem, Pointer<Int32> lpTranslated, int bSigned) int user32
Translates the text of a specified control in a dialog box into an integer value. [...]
GetDlgItemText(int hDlg, int nIDDlgItem, Pointer<Utf16> lpString, int cchMax) 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. A double-click is a series of two clicks of the mouse button, the second occurring within a specified time after the first. The double-click time is the maximum number of milliseconds that may occur between the first and second click of a double-click. The maximum double-click time is 5000 milliseconds. [...]
GetDpiForSystem() int user32
Returns the system DPI. [...]
GetDpiForWindow(int hwnd) int user32
Returns the dots per inch (dpi) value for the associated window. [...]
GetDpiFromDpiAwarenessContext(int value) int user32
Retrieves the DPI from a given DPI_AWARENESS_CONTEXT handle. This enables you to determine the DPI of a thread without needed to examine a window created within that thread. [...]
GetFocus() int 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() int user32
Retrieves a handle to the foreground window (the window with which the user is currently working). The system assigns a slightly higher priority to the thread that creates the foreground window than it does to other threads. [...]
GetGestureConfig(int hwnd, int dwReserved, int dwFlags, Pointer<Uint32> pcIDs, Pointer<GESTURECONFIG> pGestureConfig, int cbSize) int user32
Retrieves the configuration for which Windows Touch gesture messages are sent from a window. [...]
GetGestureExtraArgs(int hGestureInfo, int cbExtraArgs, Pointer<Uint8> pExtraArgs) int user32
Retrieves additional information about a gesture from its GESTUREINFO handle. [...]
GetGestureInfo(int hGestureInfo, Pointer<GESTUREINFO> pGestureInfo) int user32
Retrieves a GESTUREINFO structure given a handle to the gesture information. [...]
GetIconInfo(int hIcon, Pointer<ICONINFO> piconinfo) int user32
Retrieves information about the specified icon or cursor. [...]
GetIconInfoEx(int hicon, Pointer<ICONINFOEX> piconinfo) int user32
Retrieves the opacity and transparency color key of a layered window. [...]
GetInputState() int user32
Determines whether there are mouse-button or keyboard messages in the calling thread's message queue. [...]
GetKeyboardLayout(int idThread) int user32
Retrieves the active input locale identifier (formerly called the keyboard layout). [...]
GetKeyboardLayoutList(int nBuff, Pointer<IntPtr> lpList) int user32
Retrieves the input locale identifiers (formerly called keyboard layout handles) corresponding to the current set of input locales in the system. The function copies the identifiers to the specified buffer. [...]
GetKeyboardLayoutName(Pointer<Utf16> pwszKLID) int user32
Retrieves the name of the active input locale identifier (formerly called the keyboard layout) for the system. [...]
GetKeyboardState(Pointer<Uint8> lpKeyState) int user32
Copies the status of the 256 virtual keys to the specified buffer. [...]
GetKeyboardType(int nTypeFlag) int user32
Retrieves information about the current keyboard. [...]
GetKeyNameText(int lParam, Pointer<Utf16> lpString, int cchSize) 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. The status specifies whether the key is up, down, or toggled (on, off—alternating each time the key is pressed). [...]
GetLastInputInfo(Pointer<LASTINPUTINFO> plii) int user32
Retrieves the time of the last input event. [...]
GetLayeredWindowAttributes(int hwnd, Pointer<Uint32> pcrKey, Pointer<Uint8> pbAlpha, Pointer<Uint32> pdwFlags) int user32
Retrieves the opacity and transparency color key of a layered window. [...]
GetMenu(int hWnd) int user32
Retrieves a handle to the menu assigned to the specified window. [...]
GetMenuInfo(int param0, Pointer<MENUINFO> param1) int user32
Retrieves information about a specified menu. [...]
GetMenuItemCount(int hMenu) int user32
Determines the number of items in the specified menu. [...]
GetMenuItemInfo(int hmenu, int item, int fByPosition, Pointer<MENUITEMINFO> lpmii) int user32
Retrieves information about a menu item. [...]
GetMenuItemRect(int hWnd, int hMenu, int uItem, Pointer<RECT> lprcItem) int user32
Retrieves the bounding rectangle for the specified menu item. [...]
GetMenuState(int hMenu, int uId, int uFlags) int user32
Retrieves the menu flags associated with the specified menu item. If the menu item opens a submenu, this function also returns the number of items in the submenu. [...]
GetMenuString(int hMenu, int uIDItem, Pointer<Utf16> lpString, int cchMax, int flags) int user32
Copies the text string of the specified menu item into the specified buffer. [...]
GetMessage(Pointer<MSG> lpMsg, int hWnd, int wMsgFilterMin, int wMsgFilterMax) int user32
Retrieves a message from the calling thread's message queue. The function dispatches incoming sent messages until a posted message is available for retrieval. [...]
GetMessageExtraInfo() int user32
Retrieves the extra message information for the current thread. Extra message information is an application- or driver-defined value associated with the current thread's message queue. [...]
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. The time is a long integer that specifies the elapsed time, in milliseconds, from the time the system was started to the time the message was created (that is, placed in the thread's message queue). [...]
GetMonitorInfo(int hMonitor, Pointer<MONITORINFO> lpmi) int user32
The GetMonitorInfo function retrieves information about a display monitor. [...]
GetMouseMovePointsEx(int cbSize, Pointer<MOUSEMOVEPOINT> lppt, Pointer<MOUSEMOVEPOINT> lpptBuf, int nBufPoints, int resolution) int user32
Retrieves a history of up to 64 previous coordinates of the mouse or pen. [...]
GetNextDlgGroupItem(int hDlg, int hCtl, int bPrevious) int 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(int hDlg, int hCtl, int bPrevious) int user32
Retrieves a handle to the first control that has the WS_TABSTOP style that precedes (or follows) the specified control. [...]
GetOpenClipboardWindow() int user32
Retrieves the handle to the window that currently has the clipboard open. [...]
GetParent(int hWnd) int user32
Retrieves a handle to the specified window's parent or owner. [...]
GetPhysicalCursorPos(Pointer<POINT> lpPoint) int user32
Retrieves the position of the cursor in physical coordinates. [...]
GetPriorityClipboardFormat(Pointer<Uint32> paFormatPriorityList, int cFormats) int user32
Retrieves the first available clipboard format in the specified list. [...]
GetProcessWindowStation() int user32
Retrieves a handle to the current window station for the calling process. [...]
GetProp(int hWnd, Pointer<Utf16> lpString) int user32
Retrieves a data handle from the property list of the specified window. The character string identifies the handle to be retrieved. The string and handle must have been added to the property list by a previous call to the SetProp function. [...]
GetScrollBarInfo(int hwnd, int idObject, Pointer<SCROLLBARINFO> psbi) int user32
The GetScrollBarInfo function retrieves information about the specified scroll bar. [...]
GetScrollInfo(int hwnd, int nBar, Pointer<SCROLLINFO> lpsi) int user32
The GetScrollInfo function 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() int user32
Retrieves a handle to the Shell's desktop window. [...]
GetSubMenu(int hMenu, int nPos) int user32
Retrieves a handle to the drop-down menu or submenu activated by the specified menu item. [...]
GetSysColor(int nIndex) int user32
Retrieves the current color of the specified display element. Display elements are the parts of a window and the display that appear on the system display screen. [...]
GetSysColorBrush(int nIndex) int user32
The GetSysColorBrush function retrieves a handle identifying a logical brush that corresponds to the specified color index. [...]
GetSystemDpiForProcess(int hProcess) int user32
Retrieves the system DPI associated with a given process. This is useful for avoiding compatibility issues that arise from sharing DPI-sensitive information between multiple system-aware processes with different system DPI values. [...]
GetSystemMenu(int hWnd, int bRevert) int user32
Enables the application to access the window menu (also known as the system menu or the control menu) for copying and modifying. [...]
GetSystemMetrics(int nIndex) int user32
Retrieves the specified system metric or system configuration setting. Note that all dimensions retrieved by GetSystemMetrics are in pixels. [...]
GetSystemMetricsForDpi(int nIndex, int dpi) int user32
Retrieves the specified system metric or system configuration setting taking into account a provided DPI. [...]
GetTabbedTextExtent(int hdc, Pointer<Utf16> lpString, int chCount, int nTabPositions, Pointer<Int32> lpnTabStopPositions) int user32
The GetTabbedTextExtent function computes the width and height of a character string. If the string contains one or more tab characters, the width of the string is based upon the specified tab stops. The GetTabbedTextExtent function uses the currently selected font to compute the dimensions of the string. [...]
GetThreadDesktop(int dwThreadId) int user32
Retrieves a handle to the desktop assigned to the specified thread. [...]
GetThreadDpiAwarenessContext() int user32
Gets the DPI_AWARENESS_CONTEXT for the current thread. [...]
GetThreadDpiHostingBehavior() int user32
Retrieves the DPI_HOSTING_BEHAVIOR from the current thread. [...]
GetTitleBarInfo(int hwnd, Pointer<TITLEBARINFO> pti) int user32
Retrieves information about the specified title bar. [...]
GetTopWindow(int hWnd) int 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(int hTouchInput, int cInputs, Pointer<TOUCHINPUT> pInputs, int cbSize) int user32
Retrieves detailed information about touch inputs associated with a particular touch input handle. [...]
GetUpdatedClipboardFormats(Pointer<Uint32> lpuiFormats, int cFormats, Pointer<Uint32> pcFormatsOut) int user32
Retrieves the currently supported clipboard formats. [...]
GetUpdateRect(int hWnd, Pointer<RECT> lpRect, int bErase) int user32
The GetUpdateRect function retrieves the coordinates of the smallest rectangle that completely encloses the update region of the specified window. GetUpdateRect retrieves the rectangle in logical coordinates. If there is no update region, GetUpdateRect retrieves an empty rectangle (sets all coordinates to zero). [...]
GetUpdateRgn(int hWnd, int hRgn, int bErase) int user32
The GetUpdateRgn function retrieves the update region of a window by copying it into the specified region. The coordinates of the update region are relative to the upper-left corner of the window (that is, they are client coordinates). [...]
GetUserObjectInformation(int hObj, int nIndex, Pointer<NativeType> pvInfo, int nLength, Pointer<Uint32> lpnLengthNeeded) int user32
Retrieves information about the specified window station or desktop object. [...]
GetWindow(int hWnd, int uCmd) int user32
Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window. [...]
GetWindowDC(int hWnd) int user32
The GetWindowDC function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. A window device context permits painting anywhere in a window, because the origin of the device context is the upper-left corner of the window instead of the client area. [...]
GetWindowDisplayAffinity(int hWnd, Pointer<Uint32> pdwAffinity) int user32
Retrieves the current display affinity setting, from any process, for a given window. [...]
GetWindowDpiAwarenessContext(int hwnd) int user32
Returns the DPI_AWARENESS_CONTEXT associated with a window. [...]
GetWindowDpiHostingBehavior(int hwnd) int user32
Returns the DPI_HOSTING_BEHAVIOR of the specified window. [...]
GetWindowInfo(int hwnd, Pointer<WINDOWINFO> pwi) int user32
Retrieves information about the specified window. [...]
GetWindowModuleFileName(int hwnd, Pointer<Utf16> pszFileName, int cchFileNameMax) int user32
Retrieves the full path and file name of the module associated with the specified window handle. [...]
GetWindowPlacement(int hWnd, Pointer<WINDOWPLACEMENT> lpwndpl) int user32
Retrieves the show state and the restored, minimized, and maximized positions of the specified window. [...]
GetWindowRect(int hWnd, Pointer<RECT> lpRect) int user32
Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen. [...]
GetWindowRgn(int hWnd, int hRgn) int user32
The GetWindowRgn function obtains a copy of the window region of a window. The window region of a window is set by calling the SetWindowRgn function. The window region determines the area within the window where the system permits drawing. The system does not display any portion of a window that lies outside of the window region [...]
GetWindowRgnBox(int hWnd, Pointer<RECT> lprc) int user32
The GetWindowRgnBox function retrieves the dimensions of the tightest bounding rectangle for the window region of a window. [...]
GetWindowText(int hWnd, Pointer<Utf16> lpString, int nMaxCount) int user32
Copies the text of the specified window's title bar (if it has one) into a buffer. If the specified window is a control, the text of the control is copied. However, GetWindowText cannot retrieve the text of a control in another application. [...]
GetWindowTextLength(int hWnd) int user32
Retrieves the length, in characters, of the specified window's title bar text (if the window has a title bar). If the specified window is a control, the function retrieves the length of the text within the control. However, GetWindowTextLength cannot retrieve the length of the text of an edit control in another application. [...]
GetWindowThreadProcessId(int 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(int hDC, int hBrush, Pointer<NativeFunction<OutputProc>> lpOutputFunc, int lpData, int nCount, int X, int Y, int nWidth, int nHeight) int user32
The GrayString function draws gray text at the specified location. The function draws the text by copying it into a memory bitmap, graying the bitmap, and then copying the bitmap to the screen. The function grays the text regardless of the selected brush and background. GrayString uses the font currently selected for the specified device context. [...]
HideCaret(int hWnd) int user32
Removes the caret from the screen. Hiding a caret does not destroy its current shape or invalidate the insertion point. [...]
InflateRect(Pointer<RECT> lprc, int dx, int dy) int user32
The InflateRect function increases or decreases the width and height of the specified rectangle. The InflateRect function adds -dx units to the left end and dx to the right end of the rectangle and -dy units to the top and dy to the bottom. The dx and dy parameters are signed values; positive values increase the width and height, and negative values decrease them. [...]
InSendMessage() 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) by a call to the SendMessage function. [...]
InSendMessageEx(Pointer<NativeType> lpReserved) 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(int hMenu, int uPosition, int uFlags, int uIDNewItem, Pointer<Utf16> lpNewItem) int user32
Inserts a new menu item into a menu, moving other items down the menu. [...]
InsertMenuItem(int hmenu, int item, int fByPosition, Pointer<MENUITEMINFO> lpmi) int user32
Inserts a new menu item at the specified position in a menu. [...]
IntersectRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) int user32
The IntersectRect function calculates the intersection of two source rectangles and places the coordinates of the intersection rectangle into the destination rectangle. If the source rectangles do not intersect, an empty rectangle (in which all coordinates are set to zero) is placed into the destination rectangle. [...]
InvalidateRect(int hWnd, Pointer<RECT> lpRect, int bErase) int user32
The InvalidateRect function adds a rectangle to the specified window's update region. The update region represents the portion of the window's client area that must be redrawn. [...]
InvalidateRgn(int hWnd, int hRgn, int bErase) int user32
The InvalidateRgn function invalidates the client area within the specified region by adding it to the current update region of a window. The invalidated region, along with all other areas in the update region, is marked for painting when the next WM_PAINT message occurs. [...]
InvertRect(int hDC, Pointer<RECT> lprc) int user32
The InvertRect function 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(int hWndParent, int hWnd) int user32
Determines whether a window is a child window or descendant window of a specified parent window. A child window is the direct descendant of a specified parent window if that parent window is in the chain of parent windows; the chain of parent windows leads from the original overlapped or pop-up window to the child window. [...]
IsClipboardFormatAvailable(int format) int user32
Determines whether the clipboard contains data in the specified format. [...]
IsDialogMessage(int hDlg, Pointer<MSG> lpMsg) int user32
Determines whether a message is intended for the specified dialog box and, if it is, processes the message. [...]
IsDlgButtonChecked(int hDlg, int nIDButton) int user32
The IsDlgButtonChecked function determines whether a button control is checked or whether a three-state button control is checked, unchecked, or indeterminate. [...]
IsGUIThread(int bConvert) int user32
Determines whether the calling thread is already a GUI thread. It can also optionally convert the thread to a GUI thread. [...]
IsHungAppWindow(int hwnd) int user32
Determines whether the system considers that a specified application is not responding. An application is considered to be not responding if it is not waiting for input, is not in startup processing, and has not called PeekMessage within the internal timeout period of 5 seconds. [...]
IsIconic(int hWnd) int user32
Determines whether the specified window is minimized (iconic). [...]
IsImmersiveProcess(int hProcess) int user32
Determines whether the process belongs to a Windows Store app. [...]
IsMenu(int hMenu) int user32
Determines whether a handle is a menu handle. [...]
IsProcessDPIAware() int 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) int user32
The IsRectEmpty function determines whether the specified rectangle is empty. An empty rectangle is one that has no area; that is, the coordinate of the right side is less than or equal to the coordinate of the left side, or the coordinate of the bottom side is less than or equal to the coordinate of the top side. [...]
IsTouchWindow(int hwnd, Pointer<Uint32> pulFlags) int user32
Checks whether a specified window is touch-capable and, optionally, retrieves the modifier flags set for the window's touch capability. [...]
IsValidDpiAwarenessContext(int value) int user32
Determines if a specified DPI_AWARENESS_CONTEXT is valid and supported by the current system. [...]
IsWindow(int hWnd) int user32
Determines whether the specified window handle identifies an existing window. [...]
IsWindowEnabled(int hWnd) int user32
Determines whether the specified window is enabled for mouse and keyboard input. [...]
IsWindowUnicode(int hWnd) int user32
Determines whether the specified window is a native Unicode window. [...]
IsWindowVisible(int hWnd) int user32
Determines the visibility state of the specified window. [...]
IsWow64Message() int user32
Determines whether the last message read from the current thread's queue originated from a WOW64 process. [...]
IsZoomed(int hWnd) int user32
Determines whether a window is maximized. [...]
KillTimer(int hWnd, int uIDEvent) int user32
Destroys the specified timer. [...]
LoadAccelerators(int hInstance, Pointer<Utf16> lpTableName) int user32
Loads the specified accelerator table. [...]
LoadCursor(int hInstance, Pointer<Utf16> lpCursorName) int user32
Loads the specified cursor resource from the executable (.EXE) file associated with an application instance. Note: this function has been superseded by the LoadImage function. [...]
LoadCursorFromFile(Pointer<Utf16> lpFileName) int user32
Creates a cursor based on data contained in a file. [...]
LoadIcon(int hInstance, Pointer<Utf16> lpIconName) int user32
Loads the specified icon resource from the executable (.exe) file associated with an application instance. [...]
LoadImage(int hInst, Pointer<Utf16> name, int type, int cx, int cy, int fuLoad) int user32
Loads an icon, cursor, animated cursor, or bitmap. [...]
LoadKeyboardLayout(Pointer<Utf16> pwszKLID, int Flags) int user32
Loads a new input locale identifier (formerly called the keyboard layout) into the system. [...]
LoadMenuIndirect(Pointer<NativeType> lpMenuTemplate) int user32
Creates a cursor based on data contained in a file. [...]
LoadString(int hInstance, int uID, Pointer<Utf16> lpBuffer, int cchBufferMax) int user32
Loads a string resource from the executable file associated with a specified module and either copies the string into a buffer with a terminating null character or returns a read-only pointer to the string resource itself. [...]
LockSetForegroundWindow(int uLockCode) int user32
The foreground process can call the LockSetForegroundWindow function to disable calls to the SetForegroundWindow function. [...]
LockWindowUpdate(int hWndLock) int user32
The LockWindowUpdate function disables or enables drawing in the specified window. Only one window can be locked at a time. [...]
LockWorkStation() int user32
Locks the workstation's display. Locking a workstation protects it from unauthorized use. [...]
LogicalToPhysicalPoint(int hWnd, Pointer<POINT> lpPoint) int user32
Converts the logical coordinates of a point in a window to physical coordinates. [...]
LogicalToPhysicalPointForPerMonitorDPI(int hWnd, Pointer<POINT> lpPoint) int 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, int fIcon) int user32
Searches through icon or cursor data for the icon or cursor that best fits the current display device. [...]
LookupIconIdFromDirectoryEx(Pointer<Uint8> presbits, int fIcon, int cxDesired, int cyDesired, int Flags) int user32
Searches through icon or cursor data for the icon or cursor that best fits the current display device. [...]
MapDialogRect(int hDlg, Pointer<RECT> lpRect) int user32
Converts the specified dialog box units to screen units (pixels). The function replaces the coordinates in the specified RECT structure with the converted coordinates, which allows the structure to be used to create a dialog box or position a control within a dialog box. [...]
MapVirtualKey(int uCode, int 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, int uMapType, int 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. The function translates the codes using the input language and an input locale identifier. [...]
MapWindowPoints(int hWndFrom, int hWndTo, Pointer<POINT> lpPoints, int cPoints) int user32
The MapWindowPoints function 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. [...]
MessageBox(int hWnd, Pointer<Utf16> lpText, Pointer<Utf16> lpCaption, int uType) int 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. The message box returns an integer value that indicates which button the user clicked. [...]
MessageBoxEx(int hWnd, Pointer<Utf16> lpText, Pointer<Utf16> lpCaption, int uType, int wLanguageId) int user32
Creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons. The buttons are in the language of the system user interface. [...]
ModifyMenu(int hMnu, int uPosition, int uFlags, int uIDNewItem, Pointer<Utf16> lpNewItem) int user32
Changes an existing menu item. This function is used to specify the content, appearance, and behavior of the menu item. [...]
MonitorFromPoint(POINT pt, int dwFlags) int user32
The MonitorFromPoint function retrieves a handle to the display monitor that contains a specified point. [...]
MonitorFromRect(Pointer<RECT> lprc, int dwFlags) int user32
The MonitorFromRect function retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle. [...]
MonitorFromWindow(int hwnd, int dwFlags) int user32
The MonitorFromWindow function retrieves a handle to the display monitor that has the largest area of intersection with the bounding rectangle of a specified window. [...]
MoveWindow(int hWnd, int X, int Y, int nWidth, int nHeight, int bRepaint) int user32
Changes the position and dimensions of the specified window. For a top-level window, the position and dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area. [...]
MsgWaitForMultipleObjects(int nCount, Pointer<IntPtr> pHandles, int fWaitAll, int dwMilliseconds, int dwWakeMask) int user32
Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses. The objects can include input event objects, which you specify using the dwWakeMask parameter. [...]
MsgWaitForMultipleObjectsEx(int nCount, Pointer<IntPtr> pHandles, int dwMilliseconds, int dwWakeMask, int dwFlags) int 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. The array of objects can include input event objects, which you specify using the dwWakeMask parameter. [...]
NotifyWinEvent(int event, int hwnd, int idObject, int idChild) → void user32
Signals the system that a predefined event occurred. If any client applications have registered a hook function for the event, the system calls the client's hook function. [...]
OffsetRect(Pointer<RECT> lprc, int dx, int dy) int user32
The OffsetRect function moves the specified rectangle by the specified offsets. [...]
OpenClipboard(int hWndNewOwner) int user32
Opens the clipboard for examination and prevents other applications from modifying the clipboard content. [...]
OpenDesktop(Pointer<Utf16> lpszDesktop, int dwFlags, int fInherit, int dwDesiredAccess) int user32
Opens the specified desktop object. [...]
OpenIcon(int hWnd) int user32
Restores a minimized (iconic) window to its previous size and position; it then activates the window. [...]
OpenInputDesktop(int dwFlags, int fInherit, int dwDesiredAccess) int user32
Opens the desktop that receives user input. [...]
OpenWindowStation(Pointer<Utf16> lpszWinSta, int fInherit, int dwDesiredAccess) int user32
Opens the specified window station. [...]
PaintDesktop(int hdc) int user32
The PaintDesktop function fills the clipping region in the specified device context with the desktop pattern or wallpaper. The function is provided primarily for shell desktops. [...]
PeekMessage(Pointer<MSG> lpMsg, int hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg) int user32
Dispatches incoming sent messages, checks the thread message queue for a posted message, and retrieves the message (if any exist). [...]
PhysicalToLogicalPoint(int hWnd, Pointer<POINT> lpPoint) int user32
Converts the physical coordinates of a point in a window to logical coordinates. [...]
PhysicalToLogicalPointForPerMonitorDPI(int hWnd, Pointer<POINT> lpPoint) int 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(int hWnd, int Msg, int wParam, int lParam) int 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). It is typically used in response to a WM_DESTROY message. [...]
PostThreadMessage(int idThread, int Msg, int wParam, int lParam) int user32
Posts a message to the message queue of the specified thread. It returns without waiting for the thread to process the message. [...]
PrintWindow(int hwnd, int hdcBlt, int nFlags) int user32
The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC. [...]
PtInRect(Pointer<RECT> lprc, POINT pt) int user32
The PtInRect function determines whether the specified point lies within the specified rectangle. A point is within a rectangle if it lies on the left or top side or is within all four sides. A point on the right or bottom side is considered outside the rectangle. [...]
RedrawWindow(int hWnd, Pointer<RECT> lprcUpdate, int hrgnUpdate, int flags) int user32
The RedrawWindow function updates the specified rectangle or region in a window's client area. [...]
RegisterClass(Pointer<WNDCLASS> lpWndClass) int user32
Registers a window class for subsequent use in calls to the CreateWindow or CreateWindowEx function. [...]
RegisterClassEx(Pointer<WNDCLASSEX> param0) int user32
Registers a window class for subsequent use in calls to the CreateWindow or CreateWindowEx function. [...]
RegisterClipboardFormat(Pointer<Utf16> lpszFormat) int user32
Registers a new clipboard format. This format can then be used as a valid clipboard format. [...]
RegisterHotKey(int hWnd, int id, int fsModifiers, int vk) int user32
Defines a system-wide hot key. [...]
RegisterPowerSettingNotification(int hRecipient, Pointer<GUID> PowerSettingGuid, int Flags) int user32
Registers the application to receive power setting notifications for the specific power setting event. [...]
RegisterTouchHitTestingWindow(int hwnd, int value) int user32
Registers a window to process the WM_TOUCHHITTESTING notification. [...]
RegisterTouchWindow(int hwnd, int ulFlags) int user32
Registers a window as being touch-capable. [...]
RegisterWindowMessage(Pointer<Utf16> lpString) int user32
Defines a new window message that is guaranteed to be unique throughout the system. The message value can be used when sending or posting messages. [...]
ReleaseCapture() int user32
Releases the mouse capture from a window in the current thread and restores normal mouse input processing. A window that has captured the mouse receives all mouse input, regardless of the position of the cursor, except when a mouse button is clicked while the cursor hot spot is in the window of another thread. [...]
ReleaseDC(int hWnd, int hDC) int user32
The ReleaseDC function releases a device context (DC), freeing it for use by other applications. The effect of the ReleaseDC function depends on the type of DC. It frees only common and window DCs. It has no effect on class or private DCs. [...]
RemoveClipboardFormatListener(int hwnd) int user32
Removes the given window from the system-maintained clipboard format listener list. [...]
RemoveMenu(int hMenu, int uPosition, int uFlags) int user32
Deletes a menu item or detaches a submenu from the specified menu. If the menu item opens a drop-down menu or submenu, RemoveMenu does not destroy the menu or its handle, allowing the menu to be reused. Before this function is called, the GetSubMenu function should retrieve a handle to the drop-down menu or submenu. [...]
RemoveProp(int hWnd, Pointer<Utf16> lpString) int user32
Removes an entry from the property list of the specified window. The specified character string identifies the entry to be removed. [...]
ReplyMessage(int lResult) int user32
Replies to a message sent from another thread by the SendMessage function. [...]
ScreenToClient(int hWnd, Pointer<POINT> lpPoint) int user32
The ScreenToClient function converts the screen coordinates of a specified point on the screen to client-area coordinates. [...]
ScrollDC(int hDC, int dx, int dy, Pointer<RECT> lprcScroll, Pointer<RECT> lprcClip, int hrgnUpdate, Pointer<RECT> lprcUpdate) int user32
The ScrollDC function scrolls a rectangle of bits horizontally and vertically. [...]
ScrollWindow(int hWnd, int XAmount, int YAmount, Pointer<RECT> lpRect, Pointer<RECT> lpClipRect) int user32
The ScrollWindow function scrolls the contents of the specified window's client area. [...]
ScrollWindowEx(int hWnd, int dx, int dy, Pointer<RECT> prcScroll, Pointer<RECT> prcClip, int hrgnUpdate, Pointer<RECT> prcUpdate, int flags) int user32
The ScrollWindowEx function scrolls the contents of the specified window's client area. [...]
SendDlgItemMessage(int hDlg, int nIDDlgItem, int Msg, int wParam, int lParam) int user32
Sends a message to the specified control in a dialog box. [...]
SendInput(int cInputs, Pointer<INPUT> pInputs, int cbSize) int user32
Synthesizes keystrokes, mouse motions, and button clicks. [...]
SendMessage(int hWnd, int Msg, int wParam, int lParam) int user32
Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. [...]
SendMessageCallback(int hWnd, int Msg, int wParam, int lParam, Pointer<NativeFunction<SendAsyncProc>> lpResultCallBack, int dwData) int user32
Sends the specified message to a window or windows. It calls the window procedure for the specified window and returns immediately if the window belongs to another thread. After the window procedure processes the message, the system calls the specified callback function, passing the result of the message processing and an application-defined value to the callback function. [...]
SendMessageTimeout(int hWnd, int Msg, int wParam, int lParam, int fuFlags, int uTimeout, Pointer<IntPtr> lpdwResult) int user32
Sends the specified message to one or more windows. [...]
SendNotifyMessage(int hWnd, int Msg, int wParam, int lParam) int user32
Sends the specified message to a window or windows. If the window was created by the calling thread, SendNotifyMessage calls the window procedure for the window and does not return until the window procedure has processed the message. If the window was created by a different thread, SendNotifyMessage passes the message to the window procedure and returns immediately; it does not wait for the window procedure to finish processing the message. [...]
SetActiveWindow(int hWnd) int user32
Activates a window. The window must be attached to the calling thread's message queue. [...]
SetCapture(int hWnd) int user32
Sets the mouse capture to the specified window belonging to the current thread. SetCapture captures mouse input either when the mouse is over the capturing window, or when the mouse button was pressed while the mouse was over the capturing window and the button is still down. Only one window at a time can capture the mouse. [...]
SetCaretBlinkTime(int uMSeconds) int user32
Sets the caret blink time to the specified number of milliseconds. The blink time is the elapsed time, in milliseconds, required to invert the caret's pixels. [...]
SetCaretPos(int X, int Y) int user32
Moves the caret to the specified coordinates. If the window that owns the caret was created with the CS_OWNDC class style, then the specified coordinates are subject to the mapping mode of the device context associated with that window. [...]
SetClipboardData(int uFormat, int hMem) int user32
Places data on the clipboard in a specified clipboard format. The window must be the current clipboard owner, and the application must have called the OpenClipboard function. [...]
SetClipboardViewer(int hWndNewViewer) int user32
Adds the specified window to the chain of clipboard viewers. [...]
SetCoalescableTimer(int hWnd, int nIDEvent, int uElapse, Pointer<NativeFunction<TimerProc>> lpTimerFunc, int uToleranceDelay) int user32
Creates a timer with the specified time-out value and coalescing tolerance delay. [...]
SetCursor(int hCursor) int user32
Sets the cursor shape. [...]
SetCursorPos(int X, int Y) int user32
Moves the cursor to the specified screen coordinates. If the new coordinates are not within the screen rectangle set by the most recent ClipCursor function call, the system automatically adjusts the coordinates so that the cursor stays within the rectangle. [...]
SetDialogControlDpiChangeBehavior(int hWnd, int mask, int values) int user32
Overrides the default per-monitor DPI scaling behavior of a child window in a dialog. [...]
SetDialogDpiChangeBehavior(int hDlg, int mask, int values) int user32
Dialogs in Per-Monitor v2 contexts are automatically DPI scaled. This method lets you customize their DPI change behavior. This function works in conjunction with the DIALOG_DPI_CHANGE_BEHAVIORS enum in order to override the default DPI scaling behavior for dialogs. This function is called on a specified dialog, for which the specified flags are individually saved. [...]
SetDisplayAutoRotationPreferences(int orientation) int user32
Sets the screen auto-rotation preferences for the current process. [...]
SetDlgItemInt(int hDlg, int nIDDlgItem, int uValue, int bSigned) int user32
Sets the text of a control in a dialog box to the string representation of a specified integer value. [...]
SetDlgItemText(int hDlg, int nIDDlgItem, Pointer<Utf16> lpString) int user32
Sets the title or text of a control in a dialog box. [...]
SetDoubleClickTime(int param0) int user32
Sets the double-click time for the mouse. A double-click is a series of two clicks of a mouse button, the second occurring within a specified time after the first. The double-click time is the maximum number of milliseconds that may occur between the first and second clicks of a double-click. [...]
SetFocus(int hWnd) int user32
Sets the keyboard focus to the specified window. The window must be attached to the calling thread's message queue. [...]
SetForegroundWindow(int hWnd) int user32
Brings the thread that created the specified window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The system assigns a slightly higher priority to the thread that created the foreground window than it does to other threads. [...]
SetGestureConfig(int hwnd, int dwReserved, int cIDs, Pointer<GESTURECONFIG> pGestureConfig, int cbSize) int user32
Configures the messages that are sent from a window for Windows Touch gestures. [...]
SetKeyboardState(Pointer<Uint8> lpKeyState) int user32
Copies an array of keyboard key states into the calling thread's keyboard input-state table. This is the same table accessed by the GetKeyboardState and GetKeyState functions. Changes made to this table do not affect keyboard input to any other thread. [...]
SetLayeredWindowAttributes(int hwnd, int crKey, int bAlpha, int dwFlags) int user32
Sets the opacity and transparency color key of a layered window. [...]
SetMenuInfo(int param0, Pointer<MENUINFO> param1) int user32
Sets information for a specified menu. [...]
SetMenuItemBitmaps(int hMenu, int uPosition, int uFlags, int hBitmapUnchecked, int hBitmapChecked) int user32
Associates the specified bitmap with a menu item. Whether the menu item is selected or clear, the system displays the appropriate bitmap next to the menu item. [...]
SetMenuItemInfo(int hmenu, int item, int fByPositon, Pointer<MENUITEMINFO> lpmii) int user32
Changes information about a menu item. [...]
SetMessageExtraInfo(int lParam) int user32
Sets the extra message information for the current thread. Extra message information is an application- or driver-defined value associated with the current thread's message queue. An application can use the GetMessageExtraInfo function to retrieve a thread's extra message information. [...]
SetParent(int hWndChild, int hWndNewParent) int user32
Changes the parent window of the specified child window. [...]
SetProcessDPIAware() int user32
Sets the process-default DPI awareness to system-DPI awareness. [...]
SetProcessDpiAwarenessContext(int value) int user32
It is recommended that you set the process-default DPI awareness via application manifest. See Setting the default DPI awareness for a process for more information. Setting the process-default DPI awareness via API call can lead to unexpected application behavior. Sets the current process to a specified dots per inch (dpi) awareness context. The DPI awareness contexts are from the DPI_AWARENESS_CONTEXT value. [...]
SetProp(int hWnd, Pointer<Utf16> lpString, int hData) int user32
Adds a new entry or changes an existing entry in the property list of the specified window. The function adds a new entry to the list if the specified character string does not exist already in the list. The new entry contains the string and the handle. Otherwise, the function replaces the string's current handle with the specified handle. [...]
SetRect(Pointer<RECT> lprc, int xLeft, int yTop, int xRight, int yBottom) int user32
The SetRect function sets the coordinates of the specified rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the RECT structure. [...]
SetRectEmpty(Pointer<RECT> lprc) int user32
The SetRectEmpty function creates an empty rectangle in which all coordinates are set to zero. [...]
SetScrollInfo(int hwnd, int nBar, Pointer<SCROLLINFO> lpsi, int redraw) int user32
The SetScrollInfo function 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). The function also redraws the scroll bar, if requested. [...]
SetSysColors(int cElements, Pointer<Int32> lpaElements, Pointer<Uint32> lpaRgbValues) int user32
Sets the colors for the specified display elements. Display elements are the various parts of a window and the display that appear on the system display screen. [...]
SetSystemCursor(int hcur, int id) int user32
Enables an application to customize the system cursors. It replaces the contents of the system cursor specified by the id parameter with the contents of the cursor specified by the hcur parameter and then destroys hcur. [...]
SetThreadDpiAwarenessContext(int dpiContext) int user32
Set the DPI awareness for the current thread to the provided value. [...]
SetThreadDpiHostingBehavior(int value) int user32
Sets the thread's DPI_HOSTING_BEHAVIOR. This behavior allows windows created in the thread to host child windows with a different DPI_AWARENESS_CONTEXT. [...]
SetTimer(int hWnd, int nIDEvent, int uElapse, Pointer<NativeFunction<TimerProc>> lpTimerFunc) int user32
Creates a timer with the specified time-out value. [...]
SetUserObjectInformation(int hObj, int nIndex, Pointer<NativeType> pvInfo, int nLength) int user32
Sets information about the specified window station or desktop object. [...]
SetWindowDisplayAffinity(int hWnd, int dwAffinity) int user32
Specifies where the content of the window can be displayed. [...]
SetWindowLongPtr(int hWnd, int nIndex, int dwNewLong) int user32
Changes an attribute of the specified window. The function also sets a value at the specified offset in the extra window memory. [...]
SetWindowPlacement(int hWnd, Pointer<WINDOWPLACEMENT> lpwndpl) int user32
Sets the show state and the restored, minimized, and maximized positions of the specified window. [...]
SetWindowPos(int hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags) int user32
Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. [...]
SetWindowRgn(int hWnd, int hRgn, int bRedraw) int user32
The SetWindowRgn function sets the window region of a window. The window region determines the area within the window where the system permits drawing. The system does not display any portion of a window that lies outside of the window region [...]
SetWindowText(int hWnd, Pointer<Utf16> lpString) int user32
Changes the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is changed. However, SetWindowText cannot change the text of a control in another application. [...]
ShowCaret(int hWnd) int user32
Makes the caret visible on the screen at the caret's current position. When the caret becomes visible, it begins flashing automatically. [...]
ShowCursor(int bShow) int user32
Displays or hides the cursor. [...]
ShowOwnedPopups(int hWnd, int fShow) int user32
Shows or hides all pop-up windows owned by the specified window. [...]
ShowWindow(int hWnd, int nCmdShow) int user32
Sets the specified window's show state. [...]
ShowWindowAsync(int hWnd, int nCmdShow) int user32
Sets the show state of a window without waiting for the operation to complete. [...]
SoundSentry() int user32
Triggers a visual signal to indicate that a sound is playing. [...]
SubtractRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) int user32
The SubtractRect function determines the coordinates of a rectangle formed by subtracting one rectangle from another. [...]
SwapMouseButton(int fSwap) int user32
Reverses or restores the meaning of the left and right mouse buttons. [...]
SwitchDesktop(int hDesktop) int user32
Makes the specified desktop visible and activates it. This enables the desktop to receive input from the user. The calling process must have DESKTOP_SWITCHDESKTOP access to the desktop for the SwitchDesktop function to succeed. [...]
SwitchToThisWindow(int hwnd, int fUnknown) → void user32
Switches focus to the specified window and brings it to the foreground. [...]
SystemParametersInfo(int uiAction, int uiParam, Pointer<NativeType> pvParam, int fWinIni) int user32
Retrieves or sets the value of one of the system-wide parameters. This function can also update the user profile while setting a parameter. [...]
SystemParametersInfoForDpi(int uiAction, int uiParam, Pointer<NativeType> pvParam, int fWinIni, int dpi) int user32
Retrieves the value of one of the system-wide parameters, taking into account the provided DPI value. [...]
TabbedTextOut(int hdc, int x, int y, Pointer<Utf16> lpString, int chCount, int nTabPositions, Pointer<Int32> lpnTabStopPositions, int nTabOrigin) int user32
The TabbedTextOut function writes a character string at a specified location, expanding tabs to the values specified in an array of tab-stop positions. Text is written in the currently selected font, background color, and text color. [...]
TileWindows(int hwndParent, int wHow, Pointer<RECT> lpRect, int cKids, Pointer<IntPtr> lpKids) 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. The function translates the code using the input language and physical keyboard layout identified by the keyboard layout handle. [...]
ToAsciiEx(int uVirtKey, int uScanCode, Pointer<Uint8> lpKeyState, Pointer<Uint16> lpChar, int uFlags, int dwhkl) int user32
Translates the specified virtual-key code and keyboard state to the corresponding character or characters. The function translates the code using the input language and physical keyboard layout identified by the input locale identifier. [...]
ToUnicode(int wVirtKey, int wScanCode, Pointer<Uint8> lpKeyState, Pointer<Utf16> 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, Pointer<Utf16> pwszBuff, int cchBuff, int wFlags, int dwhkl) int user32
Translates the specified virtual-key code and keyboard state to the corresponding Unicode character or characters. [...]
TrackPopupMenuEx(int hMenu, int uFlags, int x, int y, int hwnd, Pointer<TPMPARAMS> lptpm) int user32
Displays a shortcut menu at the specified location and tracks the selection of items on the shortcut menu. The shortcut menu can appear anywhere on the screen. [...]
TranslateAccelerator(int hWnd, int hAccTable, Pointer<MSG> lpMsg) int user32
Processes accelerator keys for menu commands. The function translates a WM_KEYDOWN or WM_SYSKEYDOWN message to a WM_COMMAND or WM_SYSCOMMAND message (if there is an entry for the key in the specified accelerator table) and then sends the WM_COMMAND or WM_SYSCOMMAND message directly to the specified window procedure. TranslateAccelerator does not return until the window procedure has processed the message. [...]
TranslateMDISysAccel(int hWndClient, Pointer<MSG> lpMsg) int user32
Processes accelerator keystrokes for window menu commands of the multiple-document interface (MDI) child windows associated with the specified MDI client window. The function translates WM_KEYUP and WM_KEYDOWN messages to WM_SYSCOMMAND messages and sends them to the appropriate MDI child windows. [...]
TranslateMessage(Pointer<MSG> lpMsg) int user32
Translates virtual-key messages into character messages. The character messages are posted to the calling thread's message queue, to be read the next time the thread calls the GetMessage or PeekMessage function. [...]
UnionRect(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) int user32
The UnionRect function creates the union of two rectangles. The union is the smallest rectangle that contains both source rectangles. [...]
UnloadKeyboardLayout(int hkl) int user32
Unloads an input locale identifier (formerly called a keyboard layout). [...]
UnregisterClass(Pointer<Utf16> lpClassName, int hInstance) int user32
Unregisters a window class, freeing the memory required for the class. [...]
UnregisterHotKey(int hWnd, int id) int user32
Frees a hot key previously registered by the calling thread. [...]
UnregisterPowerSettingNotification(int Handle) int user32
Unregisters the power setting notification. [...]
UnregisterTouchWindow(int hwnd) int user32
Registers a window as no longer being touch-capable. [...]
UpdateLayeredWindowIndirect(int hWnd, Pointer<UPDATELAYEREDWINDOWINFO> pULWInfo) int user32
Updates the position, size, shape, content, and translucency of a layered window. [...]
UpdateWindow(int hWnd) int user32
The UpdateWindow function 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. The function sends a WM_PAINT message directly to the window procedure of the specified window, bypassing the application queue. If the update region is empty, no message is sent. [...]
ValidateRect(int hWnd, Pointer<RECT> lpRect) int user32
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window. [...]
ValidateRgn(int hWnd, int hRgn) int user32
The ValidateRgn function 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, int dwhkl) int user32
Translates a character to the corresponding virtual-key code and shift state. The function translates the character using the input language and physical keyboard layout identified by the input locale identifier. [...]
WaitForInputIdle(int 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() int user32
Yields control to other threads when a thread has no other messages in its message queue. The WaitMessage function suspends the thread and does not return until a new message is placed in the thread's message queue. [...]
WindowFromDC(int hDC) int user32
The WindowFromDC function returns a handle to the window associated with the specified display device context (DC). Output functions that use the specified device context draw into this window. [...]
WindowFromPhysicalPoint(POINT Point) int user32
Retrieves a handle to the window that contains the specified physical point. [...]
WindowFromPoint(POINT Point) int user32
Retrieves a handle to the window that contains the specified point. [...]