Skip navigation links
JNA API 4.2.0
com.sun.jna.platform.win32

Interface WinUser

    • Field Detail

      • HWND_BROADCAST

        static final WinDef.HWND HWND_BROADCAST
      • DWL_DLGPROC

        static final int DWL_DLGPROC
      • DWL_USER

        static final int DWL_USER
      • WS_BORDER

        static final int WS_BORDER
        The window has a thin-line border.
        See Also:
        Constant Field Values
      • WS_CAPTION

        static final int WS_CAPTION
        The window has a title bar (includes the WS_BORDER style).
        See Also:
        Constant Field Values
      • WS_CHILD

        static final int WS_CHILD
        The window is a child window. A window with this style cannot have a menu bar. This style cannot be used with the WS_POPUP style.
        See Also:
        Constant Field Values
      • WS_CHILDWINDOW

        static final int WS_CHILDWINDOW
        Same as the WS_CHILD style.
        See Also:
        Constant Field Values
      • WS_CLIPCHILDREN

        static final int WS_CLIPCHILDREN
        Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.
        See Also:
        Constant Field Values
      • WS_CLIPSIBLINGS

        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. If WS_CLIPSIBLINGS is not specified and child windows overlap, it is possible, when drawing within the client area of a child window, to draw within the client area of a neighboring child window.
        See Also:
        Constant Field Values
      • WS_DISABLED

        static final int WS_DISABLED
        The window is initially disabled. A disabled window cannot receive input from the user. To change this after a window has been created, use the EnableWindow function.
        See Also:
        Constant Field Values
      • WS_DLGFRAME

        static final int WS_DLGFRAME
        The window has a border of a style typically used with dialog boxes. A window with this style cannot have a title bar.
        See Also:
        Constant Field Values
      • WS_GROUP

        static final int WS_GROUP
        The window is the first control of a group of controls. The group consists of this first control and all controls defined after it, up to the next control with the WS_GROUP style. The first control in each group usually has the WS_TABSTOP style so that the user can move from group to group. The user can subsequently change the keyboard focus from one control in the group to the next control in the group by using the direction keys . You can turn this style on and off to change dialog box navigation. To change this style after a window has been created, use the SetWindowLong function.
        See Also:
        Constant Field Values
      • WS_HSCROLL

        static final int WS_HSCROLL
        The window has a horizontal scroll bar.
        See Also:
        Constant Field Values
      • WS_ICONIC

        static final int WS_ICONIC
        The window is initially minimized. Same as the WS_MINIMIZE style.
        See Also:
        Constant Field Values
      • WS_MAXIMIZE

        static final int WS_MAXIMIZE
        The window is initially maximized.
        See Also:
        Constant Field Values
      • WS_MAXIMIZEBOX

        static final int WS_MAXIMIZEBOX
        The window has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.
        See Also:
        Constant Field Values
      • WS_MINIMIZE

        static final int WS_MINIMIZE
        The window is initially minimized. Same as the WS_ICONIC style.
        See Also:
        Constant Field Values
      • WS_MINIMIZEBOX

        static final int WS_MINIMIZEBOX
        The window has a minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.
        See Also:
        Constant Field Values
      • WS_OVERLAPPED

        static final int WS_OVERLAPPED
        The window style overlapped. The window is an overlapped window. An overlapped window has a title bar and a border. Same as the WS_TILED style.
        See Also:
        Constant Field Values
      • WS_POPUP

        static final int WS_POPUP
        The windows is a pop-up window. This style cannot be used with the WS_CHILD style.
        See Also:
        Constant Field Values
      • WS_SYSMENU

        static final int WS_SYSMENU
        The window has a window menu on its title bar. The WS_CAPTION style must also be specified.
        See Also:
        Constant Field Values
      • WS_THICKFRAME

        static final int WS_THICKFRAME
        The window has a sizing border. Same as the WS_SIZEBOX style.
        See Also:
        Constant Field Values
      • WS_POPUPWINDOW

        static final int WS_POPUPWINDOW
        The window is a pop-up window. The WS_CAPTION and WS_POPUPWINDOW styles must be combined to make the window menu visible.
        See Also:
        Constant Field Values
      • WS_OVERLAPPEDWINDOW

        static final int WS_OVERLAPPEDWINDOW
        The window is an overlapped window. Same as the WS_TILEDWINDOW style.
        See Also:
        Constant Field Values
      • WS_SIZEBOX

        static final int WS_SIZEBOX
        The window has a sizing border. Same as the WS_THICKFRAME style.
        See Also:
        Constant Field Values
      • WS_TABSTOP

        static final int WS_TABSTOP
        The window is a control that can receive the keyboard focus when the user presses the TAB key. Pressing the TAB key changes the keyboard focus to the next control with the WS_TABSTOP style. You can turn this style on and off to change dialog box navigation. To change this style after a window has been created, use the SetWindowLong function. For user-created windows and modeless dialogs to work with tab stops, alter the message loop to call the IsDialogMessage function.
        See Also:
        Constant Field Values
      • WS_TILED

        static final int WS_TILED
        The window is an overlapped window. An overlapped window has a title bar and a border. Same as the WS_OVERLAPPED style.
        See Also:
        Constant Field Values
      • WS_TILEDWINDOW

        static final int WS_TILEDWINDOW
        The window is an overlapped window. Same as the WS_OVERLAPPEDWINDOW style.
        See Also:
        Constant Field Values
      • WS_VISIBLE

        static final int WS_VISIBLE
        The window is initially visible. This style can be turned on and off by using the ShowWindow or SetWindowPos function.
        See Also:
        Constant Field Values
      • WS_VSCROLL

        static final int WS_VSCROLL
        The window has a vertical scroll bar.
        See Also:
        Constant Field Values
      • WM_PAINT

        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.
        See Also:
        Constant Field Values
      • WM_CLOSE

        static final int WM_CLOSE
        Sent as a signal that a window or an application should terminate.
        See Also:
        Constant Field Values
      • WM_QUIT

        static final int WM_QUIT
        Indicates a request to terminate an application, and is generated when the application calls the PostQuitMessage function.
        See Also:
        Constant Field Values
      • WM_SHOWWINDOW

        static final int WM_SHOWWINDOW
        Sent to a window when the window is about to be hidden or shown.
        See Also:
        Constant Field Values
      • WM_DRAWITEM

        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.
        See Also:
        Constant Field Values
      • WM_KEYDOWN

        static final int WM_KEYDOWN
        Posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed.
        See Also:
        Constant Field Values
      • WM_CHAR

        static final int WM_CHAR
        Posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by the TranslateMessage function. The WM_CHAR message contains the character code of the key that was pressed.
        See Also:
        Constant Field Values
      • WM_SYSCOMMAND

        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.
        See Also:
        Constant Field Values
      • WM_MDIMAXIMIZE

        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.
        See Also:
        Constant Field Values
      • WM_HOTKEY

        static final int WM_HOTKEY
        Posted when the user presses a hot key registered by the RegisterHotKey function. The message is placed at the top of the message queue associated with the thread that registered the hot key.
        See Also:
        Constant Field Values
      • WM_GETICON

        static final int WM_GETICON
        Sent to a window to retrieve a handle to the large or small icon associated with a window. The system displays the large icon in the ALT+TAB dialog, and the small icon in the window caption.
        See Also:
        Constant Field Values
      • ICON_BIG

        static final int ICON_BIG
        Retrieve the large icon for the window.
        See Also:
        Constant Field Values
      • ICON_SMALL

        static final int ICON_SMALL
        Retrieve the small icon for the window.
        See Also:
        Constant Field Values
      • ICON_SMALL2

        static final int ICON_SMALL2
        Retrieves the small icon provided by the application. If the application does not provide one, the system uses the system-generated icon for that window.
        See Also:
        Constant Field Values
      • SM_MOUSEHORIZONTALWHEELPRESENT

        static final int SM_MOUSEHORIZONTALWHEELPRESENT
        See Also:
        Constant Field Values
      • GW_HWNDFIRST

        static final int GW_HWNDFIRST
        The retrieved handle identifies the window of the same type that is highest in the Z order. If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
        See Also:
        Constant Field Values
      • GW_HWNDLAST

        static final int GW_HWNDLAST
        The retrieved handle identifies the window of the same type that is lowest in the Z order. If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
        See Also:
        Constant Field Values
      • GW_HWNDNEXT

        static final int GW_HWNDNEXT
        The retrieved handle identifies the window below the specified window in the Z order. If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
        See Also:
        Constant Field Values
      • GW_HWNDPREV

        static final int GW_HWNDPREV
        The retrieved handle identifies the window above the specified window in the Z order. If the specified window is a topmost window, the handle identifies a topmost window. If the specified window is a top-level window, the handle identifies a top-level window. If the specified window is a child window, the handle identifies a sibling window.
        See Also:
        Constant Field Values
      • GW_OWNER

        static final int GW_OWNER
        The retrieved handle identifies the specified window's owner window, if any. For more information, see Owned Windows.
        See Also:
        Constant Field Values
      • GW_CHILD

        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. The function examines only child windows of the specified window. It does not examine descendant windows.
        See Also:
        Constant Field Values
      • GW_ENABLEDPOPUP

        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.
        See Also:
        Constant Field Values
      • SWP_NOZORDER

        static final int SWP_NOZORDER
        Retains the current Z order (ignores the hWndInsertAfter parameter).
        See Also:
        Constant Field Values
      • MONITOR_DEFAULTTONULL

        static final int MONITOR_DEFAULTTONULL
        Returns NULL.
        See Also:
        Constant Field Values
      • MONITOR_DEFAULTTOPRIMARY

        static final int MONITOR_DEFAULTTOPRIMARY
        Returns a handle to the primary display monitor.
        See Also:
        Constant Field Values
      • MONITOR_DEFAULTTONEAREST

        static final int MONITOR_DEFAULTTONEAREST
        Returns a handle to the display monitor that is nearest to the window.
        See Also:
        Constant Field Values
      • MONITORINFOF_PRIMARY

        static final int MONITORINFOF_PRIMARY
        This is the primary display monitor.
        See Also:
        Constant Field Values
      • CCHDEVICENAME

        static final int CCHDEVICENAME
        Length of the device name in MONITORINFOEX
        See Also:
        Constant Field Values
      • EWX_HYBRID_SHUTDOWN

        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.
        See Also:
        Constant Field Values
      • EWX_LOGOFF

        static final int EWX_LOGOFF
        Shuts down all processes running in the logon session of the process that called the ExitWindowsEx function. Then it logs the user off. This flag can be used only by processes running in an interactive user's logon session.
        See Also:
        Constant Field Values
      • EWX_RESTARTAPPS

        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. These application receive the WM_QUERYENDSESSION message with lParam set to the ENDSESSION_CLOSEAPP value. For more information, see Guidelines for Applications.
        See Also:
        Constant Field Values
      • EWX_SHUTDOWN

        static final int EWX_SHUTDOWN
        Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped. The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see User32.ExitWindowsEx(com.sun.jna.platform.win32.WinDef.UINT, com.sun.jna.platform.win32.WinDef.DWORD). Specifying this flag will not turn off the power even if the system supports the power-off feature. You must specify EWX_POWEROFF to do this. Windows XP with SP1: If the system supports the power-off feature, specifying this flag turns off the power.
        See Also:
        Constant Field Values
      • EWX_FORCE

        static final int EWX_FORCE
        This flag has no effect if terminal services is enabled. Otherwise, the system does not send the WM_QUERYENDSESSION message. This can cause applications to lose data. Therefore, you should only use this flag in an emergency.
        See Also:
        Constant Field Values
      • GCW_ATOM

        static final int GCW_ATOM
        Retrieves an ATOM value that uniquely identifies the window class. This is the same atom that the RegisterClassEx function returns.
        See Also:
        Constant Field Values
      • GCL_CBCLSEXTRA

        static final int GCL_CBCLSEXTRA
        Retrieves the size, in bytes, of the extra memory associated with the class.
        See Also:
        Constant Field Values
      • GCL_CBWNDEXTRA

        static final int GCL_CBWNDEXTRA
        Retrieves the size, in bytes, of the extra window memory associated with each window in the class. For information on how to access this memory, see GetWindowLongPtr.
        See Also:
        Constant Field Values
      • GCLP_HBRBACKGROUND

        static final int GCLP_HBRBACKGROUND
        Retrieves a handle to the background brush associated with the class.
        See Also:
        Constant Field Values
      • GCLP_HCURSOR

        static final int GCLP_HCURSOR
        Retrieves a handle to the cursor associated with the class.
        See Also:
        Constant Field Values
      • GCLP_HICON

        static final int GCLP_HICON
        Retrieves a handle to the icon associated with the class.
        See Also:
        Constant Field Values
      • GCLP_HICONSM

        static final int GCLP_HICONSM
        Retrieves a handle to the small icon associated with the class.
        See Also:
        Constant Field Values
      • GCLP_HMODULE

        static final int GCLP_HMODULE
        Retrieves a handle to the module that registered the class.
        See Also:
        Constant Field Values
      • GCLP_MENUNAME

        static final int GCLP_MENUNAME
        Retrieves the pointer to the menu name string. The string identifies the menu resource associated with the class.
        See Also:
        Constant Field Values
      • GCL_STYLE

        static final int GCL_STYLE
        Retrieves the window-class style bits.
        See Also:
        Constant Field Values
      • GCLP_WNDPROC

        static final int GCLP_WNDPROC
        Retrieves the address of the window procedure, or a handle representing the address of the window procedure. You must use the CallWindowProc function to call the window procedure.
        See Also:
        Constant Field Values
      • SMTO_ABORTIFHUNG

        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."
        See Also:
        Constant Field Values
      • SMTO_BLOCK

        static final int SMTO_BLOCK
        Prevents the calling thread from processing any other requests until the function returns.
        See Also:
        Constant Field Values
      • SMTO_NORMAL

        static final int SMTO_NORMAL
        The calling thread is not prevented from processing other requests while waiting for the function to return.
        See Also:
        Constant Field Values
      • SMTO_NOTIMEOUTIFNOTHUNG

        static final int SMTO_NOTIMEOUTIFNOTHUNG
        The function does not enforce the time-out period as long as the receiving thread is processing messages.
        See Also:
        Constant Field Values
      • SMTO_ERRORONEXIT

        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.
        See Also:
        Constant Field Values
      • IDC_APPSTARTING

        static final int IDC_APPSTARTING
        Standard arrow and small hourglass cursor.
        See Also:
        Constant Field Values
      • IDC_SIZEALL

        static final int IDC_SIZEALL
        Four-pointed arrow cursor pointing north, south, east, and west.
        See Also:
        Constant Field Values
      • IDC_SIZENESW

        static final int IDC_SIZENESW
        Double-pointed arrow cursor pointing northeast and southwest.
        See Also:
        Constant Field Values
      • IDC_SIZENS

        static final int IDC_SIZENS
        Double-pointed arrow cursor pointing north and south.
        See Also:
        Constant Field Values
      • IDC_SIZENWSE

        static final int IDC_SIZENWSE
        Double-pointed arrow cursor pointing northwest and southeast.
        See Also:
        Constant Field Values
      • IDC_SIZEWE

        static final int IDC_SIZEWE
        Double-pointed arrow cursor pointing west and east.
        See Also:
        Constant Field Values
      • IDI_EXCLAMATION

        static final int IDI_EXCLAMATION
        Exclamation point icon.
        See Also:
        Constant Field Values
      • IDI_WINLOGO

        static final int IDI_WINLOGO
        Application icon. Windows 2000: Windows logo icon.
        See Also:
        Constant Field Values
      • RIM_TYPEKEYBOARD

        static final int RIM_TYPEKEYBOARD
        The device is a keyboard.
        See Also:
        Constant Field Values
      • RIM_TYPEHID

        static final int RIM_TYPEHID
        The device is an HID that is not a keyboard and not a mouse.
        See Also:
        Constant Field Values
JNA API 4.2.0

Copyright © 2007-2015 Timothy Wall. All Rights Reserved.