Pcornel
Windows · Windows Fundamentals

Windows Architecture

Cheat sheet · https://pcornel.dk/topic.php?topic=2926

Back to the Topic

Answer

Windows uses a layered NT architecture. Applications run in user mode and call Windows APIs; anything needing full privileges crosses into kernel mode, where the kernel, executive services, drivers and the hardware abstraction layer run.

Remember

  • Windows is not only the kernel. Many important operating-system processes and services run in user mode.
  • ntoskrnl.exe contains both the NT kernel and Executive components; the narrow term kernel is smaller than everything people casually call the Windows kernel.
  • System calls cross the user/kernel boundary; ordinary API calls do not necessarily require a transition.
  • Drivers can be kernel-mode or user-mode, depending on the driver model and device class.
  • A fault in one user-mode process is usually isolated; corruption in kernel mode can affect the entire OS.

First checks

  • Get-CimInstance Win32_OperatingSystem | fl Caption,Version,BuildNumber — OS identity
  • driverquery /v — loaded drivers
  • Get-Service — user-mode services
  • Get-Process — user-mode processes

Verify in this order

user-mode applications and services → Win32/NT APIs → executive and kernel → HAL and drivers → hardware

Where it usually breaks

First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.

Windows architecture layers

LayerTypical contentsFailure scope
User modeapplications, many services, user-mode frameworksusually process/service scoped
System-call boundarytransition from user code to protected OS servicesrequest-specific
NT Executiveprocess, memory, I/O, object, security and other managerssystem-wide subsystem impact
NT kernelscheduling, interrupts, traps, low-level synchronizationsystem-wide
Driversdevice/filesystem/filter drivers; some user-mode drivers also existdevice to system-wide
HAL / hardware interfaceplatform-specific hardware abstractionplatform/system-wide

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2926

Confirmation

Confirm action

Continue?