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