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. [...]
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. [...]
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. [...]
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. [...]
ChangeClipboardChain(int hWndRemove, int hWndNewNext) int user32
Removes a specified window from the chain of clipboard viewers. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
EndDialog(int hDlg, int nResult) int user32
Destroys a modal dialog box, causing the system to end any processing for the dialog box. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
GetCursor() int user32
Retrieves a handle to the current 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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
GetPriorityClipboardFormat(Pointer<Uint32> paFormatPriorityList, int cFormats) int user32
Retrieves the first available clipboard format in the specified list. [...]
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. [...]
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. [...]
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). [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
IsIconic(int hWnd) int user32
Determines whether the specified window is minimized (iconic). [...]
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. [...]
IsWindowEnabled(int hWnd) int user32
Determines whether the specified window is enabled for mouse and keyboard input. [...]
IsWindowVisible(int hWnd) int user32
Determines the visibility state of the specified window. [...]
IsZoomed(int hWnd) int user32
Determines whether a window is maximized. [...]
KillTimer(int hWnd, int uIDEvent) int user32
Destroys the specified timer. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
OpenIcon(int hWnd) int user32
Restores a minimized (iconic) window to its previous size and position; it then activates the window. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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 Arg1) 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. [...]
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. [...]
SetMenuInfo(int hmenu, Pointer<MENUINFO> lpmi) int user32
Sets information for a specified menu. [...]
SetMenuItemInfo(int hmenu, int item, int fByPositon, Pointer<MENUITEMINFO> lpmii) int user32
Changes information about a menu item. [...]
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. [...]
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<Int32> 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. [...]
SetTimer(int hWnd, int nIDEvent, int uElapse, Pointer<NativeFunction<TimerProc>> lpTimerFunc) int user32
Creates a timer with the specified time-out value. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]
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. [...]