Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Windows Architecture

Direct 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.

When to use this

Use Windows Architecture to place a failure in the right layer: application/API, user-mode service, system-call boundary, Executive subsystem, kernel, driver or hardware-facing layer.

First 30 seconds

1. Identify whether the failure is a process, a service, a driver or the kernel.

2. Process/app → Get-Process, event logs (Application).

3. Service → Get-Service <name>, System log.

4. Driver/kernel → driverquery, bugcheck in System log (Event 1001/41).

5. Collect logs for the right layer.

Operational verification

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

Evidence · next step

Collect layer-specific logs, state or dump evidence at the first failed boundary.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Architecture traps
  • A Windows service is not automatically kernel-mode code.
  • An Administrator process still normally executes in user mode.
  • A driver failure can surface as an application error even when the application itself is correct.
  • A system-wide symptom increases suspicion of shared kernel/service infrastructure, but scope alone is not evidence of root cause.
Platform / version applicability
Microsoft Windows
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Windows
Scope / prerequisiteUse Windows Architecture to place a failure in the right layer: application/API, user-mode service, system-call boundar…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Trace a request through the layers Verify boundary

For one failing operation, identify:

1. The caller: process, service or management tool.

2. The API/runtime used by the caller.

3. Whether the operation needs a system call.

4. The Executive subsystem or driver stack that owns the resource.

5. The final device, filesystem, network or security resource.

This produces a much better troubleshooting boundary than starting with every Windows component at once.

Step 2 Diagnosis Narrow the fault

Windows Architecture — discriminating diagnosis for Windows Fundamentals → Windows Architecture. Use this chain of steps: Concrete boundaries: configured object → owning Windows component → dependency/provider → effective runtime state → event/result → original user/service workload. IF the stable identity (same computer, service/process, security context and concrete runtime object) cannot be matched between adjacent layers, stop and correct scope before interpreting downstream absence. ELSE IF the object is transitional (service start-pending/stop-pending, policy propagation, failover or retry state with progress in event/timestamp/state data), inspect the responsible timer/retry/sequence/queue and show whether it progresses. ELSE IF the owner looks known-good (configured state is consumed by the responsible Windows subsystem and the resulting runtime object/service state matches the intended operation), verify the next consumer/effective state rather than repeating the same local check. A broken signature is SCM/provider/kernel state disagrees with configuration, dependency is unavailable, repeated transition resets or the original client operation still fails It is a candidate boundary, not automatic root cause.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • 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.
Key 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
ReferenceWhat it is1 section · depth on demand

Practical NT architecture

Windows uses the NT architecture rather than a single monolithic “application talks directly to kernel” model. User-mode applications and services run in isolated processes. They use APIs implemented by user-mode libraries and subsystems; protected operations enter kernel mode through the system-service interface. Kernel-mode components include the Executive, the lower-level kernel, device and filesystem drivers, and hardware-abstraction code. This separation provides isolation while still allowing controlled access to files, memory, devices, networking and security objects.

ReferenceHow it works1 section · depth on demand

How it works

Windows Architecture — state ownership for Windows Fundamentals → Windows Architecture. Identity to preserve: same computer, service/process, security context and concrete runtime object Owner sequence: Windows administration surfaces expose object configuration and lifecycle state through services, CIM/WMI, registry, eventing and role-specific APIs. Known-good: configured state is consumed by the responsible Windows subsystem and the resulting runtime object/service state matches the intended operation Transitional: service start-pending/stop-pending, policy propagation, failover or retry state with progress in event/timestamp/state data Broken: SCM/provider/kernel state disagrees with configuration, dependency is unavailable, repeated transition resets or the original client operation still fails Do not collapse configured/requested state, owner state, programmed/effective state and workload outcome into one “healthy” flag. What this does not show: GUI/registry/configuration presence does not show effective runtime state or end-to-end service behavior Scope: Windows/Windows Server; cmdlet fields, event IDs and defaults vary by OS build and installed role.

ReferenceImportant terms & boundaries2 sections · depth on demand

Executive vs kernel

The word kernel is used in two ways:

  • In casual troubleshooting, people often use “kernel” for nearly all privileged Windows code.
  • In the narrower NT architecture, the kernel handles low-level mechanisms such as thread scheduling, interrupt/trap dispatch and synchronization, while the Executive supplies higher-level managers for objects, processes, virtual memory, I/O, security and other OS services.

ntoskrnl.exe contains both categories, so file/module names alone do not preserve that conceptual distinction.

In depth

Windows architecture separates user mode, where applications and most services run with restricted access, from kernel mode, where the executive, kernel, drivers and HAL run with full system privileges. System calls cross this boundary through ntdll.dll, which turns API calls into kernel transitions.

LayerContents
ApplicationsWin32/.NET programs, services
Subsystem DLLskernel32.dll, user32.dll, advapi32.dll
Native APIntdll.dll
ExecutiveObject manager, memory manager, I/O manager, security reference monitor, process manager
KernelScheduling, interrupts, synchronisation
DriversFile systems, network, storage, devices
HALHardware abstraction

Virtualisation-based security (VBS) adds a separate secure kernel (VTL1) isolated by the hypervisor, which protects features such as Credential Guard and HVCI from the normal kernel — even a compromised driver cannot read those secrets.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docMicrosoft Windows current

Authoritative/upstream documentation reviewed for bounded claims in Windows Fundamentals → Windows Architecture. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
windows nt architecturewindows internals architecturent executivewindows kernel architecture
Embedded reference data

Quick lookup tables

Windows architecture layers

A practical map from user-mode code to privileged operating-system components.

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
Confirmation

Confirm action

Continue?