HOME

TheInfoList



OR:

Windows USER is a component of the
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
operating system An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs. Time-sharing operating systems scheduler (computing), schedule tasks for ...
that provides core functionality for building simple
user interfaces In the industrial design field of human–computer interaction, a user interface (UI) is the space where interactions between humans and machines occur. The goal of this interaction is to allow effective operation and control of the machine fro ...
. The component has existed in all versions of Windows, and includes functionality for window management,
message passing In computer science, message passing is a technique for invoking behavior (i.e., running a program) on a computer. The invoking program sends a message to a process (which may be an actor or object) and relies on that process and its supporting ...
, input processing and standard controls.


Functionality and role

Windows USER provides a large part of the core user experience for Microsoft Windows. Historically, it was responsible for:Petzold, Charles (1998). ''Programming Windows Fifth Edition'', Microsoft Press, .Chen, Raymond (2007). ''The Old New Thing'', Addison-Wesley Professional, * Causing windows to be drawn (using
GDI GDI may refer to: Science and technology * Gasoline direct injection, a type of fuel injection * Graphics Device Interface, a component of Microsoft Windows * Guanosine nucleotide dissociation inhibitor, a protein Organisations * Gabriel Dumont I ...
as a device-independent API for drawing primitives) * Obscuring overlapping windows behind others * Window size and positioning * Providing all the standard window management controls (such as close boxes or title bars) * Providing the standard Windows menu bar * Providing of standard controls (such as
button A button is a fastener that joins two pieces of fabric together by slipping through a loop or by sliding through a buttonhole. In modern clothing and fashion design, buttons are commonly made of plastic but also may be made of metal, wood, or ...
, List box or Edit Box) * Providing dialog box management (short-cut keys, tab key processing) * Processing all user input from the mouse and keyboard * The
desktop A desktop traditionally refers to: * The surface of a desk (often to distinguish office appliances that fit on a desk, such as photocopiers and printers, from larger equipment covering its own area on the floor) Desktop may refer to various compu ...
background image (until
Windows 8 Windows 8 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on August 1, 2012, made available for download via Microsoft ...
) * Drawing all standard visual elements *
Inter-process communication In computer science, interprocess communication (IPC) is the sharing of data between running Process (computing), processes in a computer system. Mechanisms for IPC may be provided by an operating system. Applications which use IPC are often cat ...
using Dynamic Data Exchange * Mouse pointer cursor display and management * Data transfer ( Clipboard) Gradually, as Windows has become larger and better factored, Windows USER has cooperated with other components to provide this functionality: * Controls: Starting with
Windows 95 Windows 95 is a consumer-oriented operating system developed by Microsoft and the first of its Windows 9x family of operating systems, released to manufacturing on July 14, 1995, and generally to retail on August 24, 1995. Windows 95 merged ...
, new controls were placed into a separate common controls component. Starting with
Windows XP Windows XP is a major release of Microsoft's Windows NT operating system. It was released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct successor to Windows 2000 for high-end and business users a ...
, new implementations of the standard controls were also moved to that same component. * Standard Visuals: Starting with Windows XP, visual elements are drawn by the Theming component. * Windows Management experience: Starting with
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
, drawing standard window management was moved from Windows USER to the Desktop Window Manager when the
Aero Aero is a Greek prefix relating to flight and air. In British English, it is used as an adjective related to flight (e.g., as a shortened substitute for aeroplane). Aero, Ærø, or Aeros may refer to: Aeronautics Airlines and companies * Aero (A ...
theme is enabled. Starting with
Windows 8 Windows 8 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on August 1, 2012, made available for download via Microsoft ...
, window frames are always drawn by DWM, except in the
Windows Preinstallation Environment Windows Preinstallation Environment (also known as Windows PE and WinPE) is a lightweight version of Windows used for the deployment of PCs, workstations, and servers, or troubleshooting an operating system while it is offline. It is intended t ...
. * Inter-program communication: Starting with Windows 3.1,
Object Linking and Embedding Object Linking and Embedding (OLE) is a proprietary technology developed by Microsoft that allows embedding and linking to documents and other objects. For developers, it brought OLE Control Extension (OCX), a way to develop and use custom user ...
replaced Dynamic Data Exchange as the recommended model for inter program communication. * Menu bar: Starting in Windows 7, the
Ribbon A ribbon or riband is a thin band of material, typically cloth but also plastic or sometimes metal, used primarily as decorative binding and tying. Cloth ribbons are made of natural materials such as silk, cotton, and jute and of synthetic mate ...
interface is a recommended replacement for the menu bar and context menus. It is provided by the UIRibbon component.Windows Ribbon Framework
/ref> * Desktop wallpaper: Starting in
Windows 8 Windows 8 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on August 1, 2012, made available for download via Microsoft ...
, drawing of the desktop wallpaper was moved to Windows Explorer, except in the
Windows Preinstallation Environment Windows Preinstallation Environment (also known as Windows PE and WinPE) is a lightweight version of Windows used for the deployment of PCs, workstations, and servers, or troubleshooting an operating system while it is offline. It is intended t ...
, where the desktop wallpaper is drawn by the WallpaperHost.exe application. Wherever USER would have drawn the desktop background before, black is drawn, except when DWM is enabled, in which case, the user's accent will be drawn instead. * Mouse pointer: Starting in
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
when DWM is enabled, drawing of the mouse pointer is managed by it. However, starting in
Windows 11 Windows 11 is a version of Microsoft's Windows NT operating system, released on October 5, 2021, as the successor to Windows 10 (2015). It is available as a free upgrade for devices running Windows 10 that meet the #System requirements, Windo ...
, it will no longer display with DWM disabled, unless the file %SystemRoot%\System32\DWMInit.dll does not exist.


Developer experience

Windows USER implements abstractions that are used to build Windows applications. These include * HWND (Handle to Window) The HWND is the basic unit of visual display and input in the Windows developer platform. All visual elements either have their own HWNDs or live as part of a larger HWND. Many functions in Windows USER manipulate properties on HWNDs such as size, position and title. Each HWND also has a communication channel (WNDPROC - Window Procedure) for delivery of messages. Windows are managed as a tree, with the desktop window at the root of the hierarchy. Child windows are usually (but not always) visually contained within their parents. * MSG (Message) Applications and the operating system communicate with HWNDs using messages. A window message is the combination of a target HWND, a message code, and other details such as mouse position. * Message Loop By combining calls to Windows USER in the right way, a Windows application processes messages. The core Windows message loop (including calls to GetMessage, TranslateMessage and DispatchMessage) is at the core of any Windows application. Developer functionality related to Windows USER is provided in the C header file winuser.h.


Implementation

In 16-bit versions of Windows, Windows USER was implemented as a file called user.exe. The file extension here was a
misnomer A misnomer is a name that is incorrectly or unsuitably applied. Misnomers often arise because something was named long before its correct nature was known, or because an earlier form of something has been replaced by a later form to which the nam ...
, as Windows USER was in fact always a
dynamic link library A dynamic-link library (DLL) is a shared library in the Microsoft Windows or OS/2 operating system. A DLL can contain executable code (functions), data, and resources. A DLL file often has file extension .dll even though this is not require ...
. In 32-bit versions of Windows, the 32-bit version of Windows USER is called user32.dll and is located in the System32 directory, while compatibility with 16-bit applications is provided by having a modified version of user.exe also present. In 64-bit versions of Windows, the 64-bit implementation of Windows USER is called user32.dll and is located in the System32 directory, while a modified 32-bit version (also called user32.dll) is present in the SysWOW64 directory.


See also

*
Graphics Device Interface The Graphics Device Interface (GDI) is a legacy component of Microsoft Windows responsible for representing graphical objects and transmitting them to output devices such as monitors and printers. It was superseded by DirectDraw API and later ...
(GDI) * Microsoft Windows library files


References


External links


Comprehensive Reference on WOW64 Folders, Variables, Values and References
{{Windows Components Windows NT architecture Windows components Windows technology