Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Windows USER

From Wikipedia, the free encyclopedia
icon
Theverifiability of the claims made in this article is disputed. Please helpimprove this article byverifying its references andremoving any that are notreliable or do notsupport the article. Relevant discussion may be found on thetalk page.(March 2022) (Learn how and when to remove this message)
Component of Microsoft Windows

Windows USER is a component of theMicrosoft Windowsoperating system that provides core functionality for building simpleuser interfaces. The component has existed in all versions of Windows, and includes functionality forwindow management,message passing,input processing and standardcontrols.

Functionality and role

[edit]

Windows USER provides a large part of the core user experience for Microsoft Windows. Historically, it was responsible for:[1][2]

Gradually, as Windows has become larger and better factored, Windows USER has cooperated with other components to provide this functionality:

  • Controls: Starting withWindows 95, new controls were placed into a separate common controls component. Starting withWindows XP, new implementations of the standard controls were also moved to that same component.[citation needed]
  • Standard Visuals: Starting with Windows XP, visual elements are drawn by the Theming component.
  • Windows Management experience: Starting withWindows Vista, drawing standard window management was moved from Windows USER to theDesktop Window Manager when theAero theme is enabled. Starting withWindows 8, window frames are always drawn by DWM, except in theWindows Preinstallation Environment.
  • Inter-program communication: Starting with Windows 3.1,Object Linking and Embedding replaced Dynamic Data Exchange as the recommended model for inter program communication.
  • Menu bar: Starting in Windows 7, theRibbon interface is a recommended replacement for the menu bar and context menus. It is provided by the UIRibbon component.[3]
  • Desktop wallpaper: Starting inWindows 8, drawing of the desktop wallpaper was moved toWindows Explorer, except in theWindows Preinstallation Environment, where the desktop wallpaper is drawn by theWallpaperHost.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.[citation needed]
  • Mouse pointer: Starting inWindows Vista when DWM is enabled, drawing of the mouse pointer is managed by it. However, starting inWindows 11, it will no longer display with DWM disabled, unless the file%SystemRoot%\System32\DWMInit.dll does not exist.

Developer experience

[edit]

Windows USER implements abstractions that are used to build Windows applications. These include

  • HWND (Handle to Window)

TheHWND 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 largerHWND. Many functions in Windows USER manipulate properties on HWNDs such as size, position and title. EachHWND 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 targetHWND, 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 toGetMessage,TranslateMessage andDispatchMessage) is at the core of any Windows application.

Developer functionality related to Windows USER is provided in the C header file winuser.h.

Implementation

[edit]

In 16-bit versions of Windows, Windows USER was implemented as a file called user.exe. The file extension here was amisnomer, as Windows USER was in fact always adynamic-link library.

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

[edit]

References

[edit]
  1. ^Petzold, Charles (1998).Programming Windows Fifth Edition, Microsoft Press,ISBN 978-1-57231-995-0 .
  2. ^Chen, Raymond (2007).The Old New Thing, Addison-Wesley Professional,ISBN 978-0-321-44030-3
  3. ^Windows Ribbon Framework

External links

[edit]
Management
tools
Apps
Shell
Services
File systems
Server
Architecture
Security
Compatibility
API
Games
Discontinued
Games
Apps
Others
Spun off to
Microsoft Store
Retrieved from "https://en.wikipedia.org/w/index.php?title=Windows_USER&oldid=1313516451"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp