World Library  
Flag as Inappropriate
Email this Article

Windows USER

Article Id: WHEBN0001850623
Reproduction Date:

Title: Windows USER  
Author: World Heritage Encyclopedia
Language: English
Subject: Graphics Device Interface, Windows XP visual styles, PowerBASIC, List of Microsoft Windows components, .NET Framework
Collection: Windows Components, Windows Nt Architecture, Windows Technology
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Windows USER

Windows USER is a component of the Microsoft Windows operating system that provides core functionality for building simple user interfaces. The component has existed in all versions of Windows, and includes functionality for window management, message passing, input processing and standard controls.

Contents

  • Functionality and role 1
  • Developer experience 2
  • Implementation 3
  • See also 4
  • References 5
  • External links 6

Functionality and role

Windows USER provides a large part of the core user experience for Microsoft Windows. Historically, USER 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 with Windows 95, new controls were placed into a separate common controls component. Starting with Windows XP, 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.
  • 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, the Ribbon interface is a recommended replacement for the menu bar and context menus. It is provided by the UIRibbon component.[3]

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, as Windows USER was in fact always a dynamic 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

References

  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

  • API calls list - USER32.DLL - Tips for using the User API Client Library with Visual Basic
  • user32.dll API Reference for C#, VB.NET and VB6
  • Comprehensive Reference on WOW64 Folders, Variables, Values and References
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.