Top Description Inners Fields
com.sun.jna.platform.win32

public Interface WinUser

extends WinDef
Known Direct Subinterfaces
com.sun.jna.platform.win32.User32
Imports
com.sun.jna.Callback, .Native, .Pointer, .Structure, .Structure.FieldOrder, .Union, com.sun.jna.platform.win32.BaseTSD.ULONG_PTR, .WinDef.HKL, .WinNT.HANDLE, com.sun.jna.win32.StdCallLibrary.StdCallCallback, .W32APITypeMapper

Ported from WinUser.h Microsoft Windows SDK 6.0A.
Authors
dblock[at]dblock.org, Andreas "PAX" Lück, onkelpax-git[at]yahoo.de

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
WinUser.COPYDATASTRUCT

Contains data to be passed to another application by the WM_COPYDATA message.

public static class
WinUser.CWPSTRUCT

Defines the message parameters passed to a WH_CALLWNDPROC hook procedure, CallWndProc.

public static class
public static class
public static class
WinUser.HARDWAREINPUT

Contains information about a simulated message generated by an input device other than a keyboard or mouse.

public static class
public static class
public static class
WinUser.HMONITOR

Each physical display is represented by a monitor handle of type HMONITOR.

public static interface
public static class
WinUser.INPUT

Used by SendInput to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks.

public static class
public static class
WinUser.KEYBDINPUT

Contains information about a simulated keyboard event.

public static class
WinUser.LASTINPUTINFO

Contains the time of the last input.

public static interface
public static interface
public static interface
WinUser.MONITORENUMPROC

An application-defined callback function that is called by the User32#EnumDisplayMonitors function.

public static class
WinUser.MONITORINFO

The MONITORINFO structure contains information about a display monitor.

public static class
WinUser.MONITORINFOEX

The MONITORINFOEX structure contains information about a display monitor.

public static class
WinUser.MOUSEINPUT

Contains information about a simulated mouse event.

public static class
public static class
public static class
WinUser.RAWINPUTDEVICELIST

Contains information about a raw input device.

public static class
WinUser.SIZE

Specifies the width and height of a rectangle.

public static class
public static class
WinUser.WINDOWPLACEMENT

Contains information about the placement of a window on the screen.

public static interface
WinUser.WindowProc

An application-defined function that processes messages sent to a window.

public static interface
WinUser.WinEventProc

An application-defined callback (or hook) function that the system calls in response to events generated by an accessible object.

public static class
WinUser.WNDCLASSEX

Contains window class information.

public static interface

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
BS_3STATE

Creates a button that is the same as a check box, except that the box can be grayed as well as checked or cleared.

public static final int
BS_AUTO3STATE

Creates a button that is the same as a three-state check box, except that the box changes its state when the user selects it.

public static final int
BS_AUTOCHECKBOX

Creates a button that is the same as a check box, except that the check state automatically toggles between checked and cleared each time the user selects the check box.

public static final int
BS_AUTORADIOBUTTON

Creates a button that is the same as a radio button, except that when the user selects it, the system automatically sets the button's check state to checked and automatically sets the check state for all other buttons in the same group to cleared.

public static final int
BS_CHECKBOX

Creates a small, empty check box with text.

public static final int
BS_DEFPUSHBUTTON

Creates a push button that behaves like a BS_PUSHBUTTON style button, but has a distinct appearance.

public static final int
BS_GROUPBOX

Creates a rectangle in which other controls can be grouped.

public static final int
BS_LEFTTEXT

Places text on the left side of the radio button or check box when combined with a radio button or check box style.

public static final int
BS_OWNERDRAW

Creates an owner-drawn button.

public static final int
BS_PUSHBOX

A button that only shows the text

public static final int
BS_PUSHBUTTON

Creates a push button that posts a WM_COMMAND message to the owner window when the user selects the button.

public static final int
BS_RADIOBUTTON

Creates a small circle with text.

public static final int
BS_TYPEMASK

Do not use this style.

public static final int
BS_USERBUTTON

Obsolete, but provided for compatibility with 16-bit versions of Windows.

public static final int
CCHDEVICENAME

Length of the device name in MONITORINFOEX

public static final int
CF_BITMAT

A handle to a bitmap (HBITMAP).

public static final int
CF_DIB

A memory object containing a BITMAPINFO structure followed by the bitmap bits.

public static final int
CF_DIBV5

A memory object containing a BITMAPV5HEADER structure followed by the bitmap color space information and the bitmap bits.

public static final int
CF_DIF

Software Arts' Data Interchange Format.

public static final int
CF_DSPBITMAP

Bitmap display format associated with a private format.

public static final int
CF_DSPENHMETAFILE

Enhanced metafile display format associated with a private format.

public static final int
CF_DSPMETAFILEPICT

Metafile-picture display format associated with a private format.

public static final int
CF_DSPTEXT

Text display format associated with a private format.

public static final int
CF_ENHMETAFILE

A handle to an enhanced metafile (HENHMETAFILE).

public static final int
CF_GDIOBJFIRST

Start of a range of integer values for application-defined GDI object clipboard formats.

public static final int
public static final int
CF_HDROP

A handle to type HDROP that identifies a list of files.

public static final int
CF_LOCALE

The data is a handle to the locale identifier associated with text in the clipboard.

public static final int
CF_METAFILEPICT

Handle to a metafile picture format as defined by the METAFILEPICT structure.

public static final int
CF_OEMTEXT

Text format containing characters in the OEM character set.

public static final int
CF_OWNERDISPLAY

Owner-display format.

public static final int
CF_PALETTE

Handle to a color palette.

public static final int
CF_PENDATA

Data for the pen extensions to the Microsoft Windows for Pen Computing.

public static final int
CF_PRIVATEFIRST

Start of a range of integer values for private clipboard formats.

public static final int
public static final int
CF_RIFF

Represents audio data more complex than can be represented in a CF_WAVE standard wave format.

public static final int
CF_SYLK

Microsoft Symbolic Link (SYLK) format.

public static final int
CF_TEXT

Text format.

public static final int
CF_TIFF

Tagged-image file format.

public static final int
CF_UNICODETEXT

Unicode text format.

public static final int
CF_WAVE

Represents audio data in one of the standard wave formats, such as 11 kHz or 22 kHz PCM.

public static final int
public static final int
public static final int
public static final int
EWX_FORCE

This flag has no effect if terminal services is enabled.

public static final int
EWX_FORCEIFHUNG

Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message within the timeout interval.

public static final int
EWX_HYBRID_SHUTDOWN

Beginning with Windows 8: You can prepare the system for a faster startup by combining the EWX_HYBRID_SHUTDOWN flag with the EWX_SHUTDOWN flag.

public static final int
EWX_LOGOFF

Shuts down all processes running in the logon session of the process that called the ExitWindowsEx function.

public static final int
EWX_POWEROFF

Shuts down the system and turns off the power.

public static final int
EWX_REBOOT

Shuts down the system and then restarts the system.

public static final int
EWX_RESTARTAPPS

Shuts down the system and then restarts it, as well as any applications that have been registered for restart using the RegisterApplicationRestart function.

public static final int
EWX_SHUTDOWN

Shuts down the system to a point at which it is safe to turn off the power.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
GA_PARENT

Retrieves the parent window.

public static final int
GA_ROOT

Retrieves the root window by walking the chain of parent windows.

public static final int
GA_ROOTOWNER

Retrieves the owned root window by walking the chain of parent and owner windows returned by GetParent.

public static final int
GCL_CBCLSEXTRA

Retrieves the size, in bytes, of the extra memory associated with the class.

public static final int
GCL_CBWNDEXTRA

Retrieves the size, in bytes, of the extra window memory associated with each window in the class.

public static final int
GCL_HICON

Retrieves a handle to the icon associated with the class.

public static final int
GCL_HICONSM

Retrieves a handle to the small icon associated with the class.

public static final int
GCL_STYLE

Retrieves the window-class style bits.

public static final int
GCLP_HBRBACKGROUND

Retrieves a handle to the background brush associated with the class.

public static final int
GCLP_HCURSOR

Retrieves a handle to the cursor associated with the class.

public static final int
GCLP_HICON

Retrieves a handle to the icon associated with the class.

public static final int
GCLP_HICONSM

Retrieves a handle to the small icon associated with the class.

public static final int
GCLP_HMODULE

Retrieves a handle to the module that registered the class.

public static final int
GCLP_MENUNAME

Retrieves the pointer to the menu name string.

public static final int
GCLP_WNDPROC

Retrieves the address of the window procedure, or a handle representing the address of the window procedure.

public static final int
GCW_ATOM

Retrieves an ATOM value that uniquely identifies the window class.

public static final int
GW_CHILD

The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window; otherwise, the retrieved handle is NULL.

public static final int
GW_ENABLEDPOPUP

The retrieved handle identifies the enabled popup window owned by the specified window (the search uses the first such window found using GW_HWNDNEXT); otherwise, if there are no enabled popup windows, the retrieved handle is that of the specified window.

public static final int
GW_HWNDFIRST

The retrieved handle identifies the window of the same type that is highest in the Z order.

public static final int
GW_HWNDLAST

The retrieved handle identifies the window of the same type that is lowest in the Z order.

public static final int
GW_HWNDNEXT

The retrieved handle identifies the window below the specified window in the Z order.

public static final int
GW_HWNDPREV

The retrieved handle identifies the window above the specified window in the Z order.

public static final int
GW_OWNER

The retrieved handle identifies the specified window's owner window, if any.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final WinDef.HWND
public static final WinDef.HWND
public static final int
ICON_BIG

Retrieve the large icon for the window.

public static final int
ICON_SMALL

Retrieve the small icon for the window.

public static final int
ICON_SMALL2

Retrieves the small icon provided by the application.

public static final int
IDC_APPSTARTING

Standard arrow and small hourglass cursor.

public static final int
IDC_ARROW

Standard arrow cursor.

public static final int
IDC_CROSS

Crosshair cursor.

public static final int
IDC_HAND

Hand cursor.

public static final int
IDC_HELP

Arrow and question mark cursor.

public static final int
IDC_IBEAM

I-beam cursor.

public static final int
IDC_NO

Slashed circle cursor.

public static final int
IDC_SIZEALL

Four-pointed arrow cursor pointing north, south, east, and west.

public static final int
IDC_SIZENESW

Double-pointed arrow cursor pointing northeast and southwest.

public static final int
IDC_SIZENS

Double-pointed arrow cursor pointing north and south.

public static final int
IDC_SIZENWSE

Double-pointed arrow cursor pointing northwest and southeast.

public static final int
IDC_SIZEWE

Double-pointed arrow cursor pointing west and east.

public static final int
IDC_UPARROW

Vertical arrow cursor.

public static final int
IDC_WAIT

Hourglass cursor.

public static final int
IDI_APPLICATION

Application icon.

public static final int
IDI_ASTERISK

Asterisk icon.

public static final int
IDI_EXCLAMATION

Exclamation point icon.

public static final int
IDI_HAND

Stop sign icon.

public static final int
IDI_QUESTION

Question-mark icon.

public static final int
IDI_WINLOGO

Application icon.

public static final int
public static final int
public static final int
public static final int
public static final int
KL_NAMELENGTH

The minimum length of a keyboard layout name.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
MAPVK_VK_TO_CHAR

The uCode parameter is a virtual-key code and is translated into an unshifted character value in the low order word of the return value.

public static final int
MAPVK_VK_TO_VSC

The uCode parameter is a virtual-key code and is translated into a scan code.

public static final int
MAPVK_VK_TO_VSC_EX

The uCode parameter is a virtual-key code and is translated into a scan code.

public static final int
MAPVK_VSC_TO_VK

The uCode parameter is a scan code and is translated into a virtual-key code that does not distinguish between left- and right-hand keys.

public static final int
MAPVK_VSC_TO_VK_EX

The uCode parameter is a scan code and is translated into a virtual-key code that distinguishes between left- and right-hand keys.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
MODIFIER_ALT_MASK

Bitmask for the ALT key modifier.

public static final int
MODIFIER_CTRL_MASK

Bitmask for the CTRL key modifier.

public static final int
MODIFIER_HANKAKU_MASK

Bitmask for the HANKAKU key modifier.

public static final int
MODIFIER_RESERVED1_MASK

Bitmask for the RESERVED1 key modifier.

public static final int
MODIFIER_RESERVED2_MASK

Bitmask for the RESERVED2 key modifier.

public static final int
MODIFIER_SHIFT_MASK

Bitmask for the SHIFT key modifier.

public static final int
MONITOR_DEFAULTTONEAREST

Returns a handle to the display monitor that is nearest to the window.

public static final int
MONITOR_DEFAULTTONULL

Returns NULL.

public static final int
MONITOR_DEFAULTTOPRIMARY

Returns a handle to the primary display monitor.

public static final int
MONITORINFOF_PRIMARY

This is the primary display monitor.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
RIM_TYPEHID

The device is an HID that is not a keyboard and not a mouse.

public static final int
RIM_TYPEKEYBOARD

The device is a keyboard.

public static final int
RIM_TYPEMOUSE

The device is a mouse.

public static final int
SC_MAXIMIZE

Maximizes the window.

public static final int
SC_MINIMIZE

Minimizes the window.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
SMTO_ABORTIFHUNG

The function returns without waiting for the time-out period to elapse if the receiving thread appears to not respond or "hangs."

public static final int
SMTO_BLOCK

Prevents the calling thread from processing any other requests until the function returns.

public static final int
SMTO_ERRORONEXIT

The function should return 0 if the receiving window is destroyed or its owning thread dies while the message is being processed.

public static final int
SMTO_NORMAL

The calling thread is not prevented from processing other requests while waiting for the function to return.

public static final int
SMTO_NOTIMEOUTIFNOTHUNG

The function does not enforce the time-out period as long as the receiving thread is processing messages.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
SWP_ASYNCWINDOWPOS

If the calling thread and the thread that owns the window are attached to different input queues, the system posts the request to the thread that owns the window.

public static final int
SWP_DEFERERASE

Prevents generation of the WM_SYNCPAINT message.

public static final int
SWP_DRAWFRAME

Draws a frame (defined in the window's class description) around the window.

public static final int
SWP_FRAMECHANGED

Applies new frame styles set using the SetWindowLong function.

public static final int
SWP_HIDEWINDOW

Hides the window.

public static final int
SWP_NOACTIVATE

Does not activate the window.

public static final int
SWP_NOCOPYBITS

Discards the entire contents of the client area.

public static final int
SWP_NOMOVE

Retains the current position (ignores X and Y parameters).

public static final int
SWP_NOOWNERZORDER

Does not change the owner window's position in the Z order.

public static final int
SWP_NOREDRAW

Does not redraw changes.

public static final int
SWP_NOREPOSITION

Same as the SWP_NOOWNERZORDER flag.

public static final int
SWP_NOSENDCHANGING

Used by User32.SetWindowPos.

public static final int
SWP_NOSIZE

Retains the current size (ignores the cx and cy parameters).

public static final int
SWP_NOZORDER

Retains the current Z order (ignores the hWndInsertAfter parameter).

public static final int
SWP_SHOWWINDOW

Displays the window.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
WM_CHAR

Posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by the TranslateMessage function.

public static final int
WM_CLOSE

Sent as a signal that a window or an application should terminate.

public static final int
WM_COPYDATA

An application sends the WM_COPYDATA message to pass data to another application.

public static final int
public static final int
public static final int
public static final int
WM_DRAWITEM

Sent to the parent window of an owner-drawn button, combo box, list box, or menu when a visual aspect of the button, combo box, list box, or menu has changed.

public static final int
WM_GETICON

Sent to a window to retrieve a handle to the large or small icon associated with a window.

public static final int
WM_HOTKEY

Posted when the user presses a hot key registered by the RegisterHotKey function.

public static final int
WM_KEYDOWN

Posted to the window with the keyboard focus when a nonsystem key is pressed.

public static final int
public static final int
WM_MDIMAXIMIZE

An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an MDI child window.

public static final int
WM_PAINT

The WM_PAINT message is sent when the system or another application makes a request to paint a portion of an \ application's window.

public static final int
WM_QUIT

Indicates a request to terminate an application, and is generated when the application calls the PostQuitMessage function.

public static final int
public static final int
WM_SHOWWINDOW

Sent to a window when the window is about to be hidden or shown.

public static final int
public static final int
WM_SYSCOMMAND

A window receives this message when the user chooses a command from the Window menu (formerly known as the system or control menu) or when the user chooses the maximize button, minimize button, restore button, or close button.

public static final int
public static final int
public static final int
WM_USER

Used to define private messages for use by private window classes, usually of the form WM_USER+x, where x is an integer value.

public static final int
WS_BORDER

The window has a thin-line border.

public static final int
WS_CAPTION

The window has a title bar (includes the WS_BORDER style).

public static final int
WS_CHILD

The window is a child window.

public static final int
WS_CHILDWINDOW

Same as the WS_CHILD style.

public static final int
WS_CLIPCHILDREN

Excludes the area occupied by child windows when drawing occurs within the parent window.

public static final int
WS_CLIPSIBLINGS

Clips child windows relative to each other; that is, when a particular child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated.

public static final int
WS_DISABLED

The window is initially disabled.

public static final int
WS_DLGFRAME

The window has a border of a style typically used with dialog boxes.

public static final int
public static final int
public static final int
public static final int
WS_GROUP

The window is the first control of a group of controls.

public static final int
WS_HSCROLL

The window has a horizontal scroll bar.

public static final int
WS_ICONIC

The window is initially minimized.

public static final int
WS_MAXIMIZE

The window is initially maximized.

public static final int
WS_MAXIMIZEBOX

The window has a maximize button.

public static final int
WS_MINIMIZE

The window is initially minimized.

public static final int
WS_MINIMIZEBOX

The window has a minimize button.

public static final int
WS_OVERLAPPED

The window style overlapped.

public static final int
WS_OVERLAPPEDWINDOW

The window is an overlapped window.

public static final int
WS_POPUP

The windows is a pop-up window.

public static final int
WS_POPUPWINDOW

The window is a pop-up window.

public static final int
WS_SIZEBOX

The window has a sizing border.

public static final int
WS_SYSMENU

The window has a window menu on its title bar.

public static final int
WS_TABSTOP

The window is a control that can receive the keyboard focus when the user presses the TAB key.

public static final int
WS_THICKFRAME

The window has a sizing border.

public static final int
WS_TILED

The window is an overlapped window.

public static final int
WS_TILEDWINDOW

The window is an overlapped window.

public static final int
WS_VISIBLE

The window is initially visible.

public static final int
WS_VSCROLL

The window has a vertical scroll bar.

Inherited from com.sun.jna.platform.win32.WinDef:
MAX_PATH