beginner

GUI & windowing

Sessions, desktops, USER/GDI objects, and the Windows-specific UI machinery above the core kernel.

Guided paths in this branch

Follow a short sequence step by step. Each path links to the first topic; use Read next on each page to continue.

Official Microsoft docs

Closest official references related to this topic on Microsoft Learn.

Why it matters

This is the part of Windows that most people touch all day but rarely map correctly. It explains why a logged-in session, a desktop, a window, and the shell are related but not the same thing.

Mental model

The GUI stack is not just 'Explorer'. Windows builds interactive sessions, attaches them to window stations and desktops, and then manages windows, menus, drawing, and input through dedicated subsystems.

Schematic

Click a highlighted zone to understand the layer and jump deeper into the tree.
GUI: session to desktopsWindows builds an interactive session, then attaches it to a window station containing desktops.Logon contextInteractive sessionWinsta0Window stationWinlogon / DefaultDesktops + USER/GDI

Interactive session

A logon creates an interactive session with its own core UI plumbing. This is where Winlogon, Explorer, and per-session GUI state comes to life.

Open related topic

Windows building blocks

Names and paths you can look for in Task Manager, Explorer, or documentation.

  • Processexplorer.exe

    Shell and desktop

  • Componentwin32k.sys / win32kbase.sys

    Kernel windowing

Go one level deeper

Extra detail for readers who want more precision before opening a child topic.

  • GDI drawing can be hardware-accelerated via DXGI/DWM composition for desktop apps.
  • Session disconnect keeps processes alive while releasing the interactive desktop.

How it works

  1. 1A user session is created and connected to an interactive window station.
  2. 2That window station contains desktops such as Winlogon and Default.
  3. 3Processes in the session create USER and GDI objects that represent windows, menus, cursors, fonts, and drawing state.

Key terms

Window station
A securable object containing desktops plus shared GUI resources like the clipboard and atom table.
Desktop
A logical display and input surface that contains windows, menus, and hooks.
USER/GDI
Core GUI object families for interface elements and graphics resources in Windows.

Why UAC or Ctrl+Alt+Del changes what you see

Windows can switch the visible desktop inside the same session, which is why the secure logon or consent UI feels like a separate environment rather than just another window.

Common misconception

The desktop is not the shell and the shell is not the whole GUI system. Explorer sits on top of deeper session, windowing, and graphics infrastructure.

Go deeper

You should read next

Ranked from your current topic, related links, branch depth, and any active guided path.

Related topics