Windows OS Architecture

๐Ÿ’ก Goal: Understand how Windows is built under the hood โ€” from User Mode to Kernel Mode, system layers, and what makes it tick. This is foundational for everything from malware development to EDR evasion.


๐Ÿง  What is an Operating System?

An OS acts as a middleman between:

  • You (the user / programs) and
  • Hardware (CPU, RAM, Disk, etc.)

It:

  • Manages processes and memory
  • Handles file I/O
  • Provides APIs to run apps
  • Controls devices through drivers

os a

๐Ÿงฉ Key Components Breakdown

๐Ÿ”น User Mode

  • Apps like notepad.exe, chrome.exe
  • Canโ€™t directly talk to hardware or manage memory
  • Must ask Kernel Mode via System Calls
  • Hosts subsystems (e.g., Win32, POSIX, WOW64)

๐Ÿ”ธ Subsystems

  • Win32: Main API for GUI apps
  • WOW64: Lets 32-bit apps run on 64-bit Windows
  • POSIX: Legacy support for Unix-style tools

๐Ÿ”ธ Kernel Mode

  • Has full access to memory, devices, drivers
  • Runs privileged code (Ring 0)
  • Includes the Kernel, Executive, Drivers, and HAL

๐Ÿงฑ Executive (NTOS)

Think of it as the “brains” of the kernel

Includes:

  • Object Manager (handles Windows objects like files, processes)
  • Memory Manager (allocates and pages memory)
  • Process Manager (creates, manages threads/processes)
  • Security Reference Monitor (permission enforcement)

โš™๏ธ Kernel (Core)

  • Deals with low-level threading, interrupt handling, synchronization

๐Ÿ“ฆ Device Drivers

  • .sys files like disk.sys, kbdclass.sys
  • Run in kernel mode and interact directly with hardware

๐Ÿงฌ HAL (Hardware Abstraction Layer)

  • Allows Windows to run on different hardware by abstracting CPU/IO differences
  • File: hal.dll

๐Ÿ”€ User Mode vs Kernel Mode

FeatureUser ModeKernel Mode
Privilege LevelRing 3 (low)Ring 0 (high)
Memory AccessOwn virtual memoryFull system memory
Crash ImpactJust the appWhole system (BSOD)
Direct Hardware AccessโŒ Noโœ… Yes
Exampleexplorer.exentoskrnl.exe, disk.sys

โš™๏ธ System Call Flow (Behind the Scenes)

When you run calc.exe, here’s what happens:

  1. You click a shortcut
  2. Explorer.exe launches calc.exe using CreateProcess
  3. CreateProcess โ†’ Win32 API
  4. Win32 API โ†’ System Call (like NtCreateProcess)
  5. Kernel validates permissions, allocates memory
  6. Kernel returns handle, app runs

โžก๏ธ Every “simple” action is backed by 100+ low-level operations.


๐Ÿงช Hands-On Practice

Want to see the layers in action? Try these:

# On Windows PowerShell
Get-Process | Select-Object Name, Path, Id

# Peek into ntoskrnl usage
Get-WmiObject -Query "Select * from Win32_OperatingSystem"

# View loaded drivers (kernel-mode)
driverquery /v

Use Process Hacker or WinDbg to see threads, handles, and kernel objects live.


๐Ÿง  Summary

  • Windows is a hybrid kernel OS with clear User Mode and Kernel Mode
  • User Mode apps can’t touch hardware directly โ€” they rely on System Calls
  • Kernel Mode contains the brain (ntoskrnl.exe), drivers, and HAL
  • Everything you do โ€” launching apps, copying files โ€” goes through this architecture

5 1 vote
Article Rating
guest
12 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
James

Great Detailed

789clubios

Yo, so I checked out 789clubios recently. The games are decent, and the signup process was smooth. Nothing crazy mind-blowing, but a solid choice if you’re looking for something new. Check it out here: 789clubios

blessmxcasino

Blessmxcasino, so many casinos on this list! I hope they are nice. I’m no expert but here’s an easy link to this blessmxcasino site: blessmxcasino

12345jili

G’day! Heard a few whispers about 12345jili. Anyone striking gold there? Slots look pretty tempting to be honest. Take a punt with 12345jili, maybe youโ€™ll win!

e88apk

Downloaded the E88apk the other day. Seems pretty solid. Makes playing on your phone dead easy. Give e88apk a download if you’re after some on-the-go fun.

betwindownload

Needed a new betting app, and stumbled across Betwindownload. So far, so good! Super easy to install and use. Check out betwindownload.

luckymax

Interesting read! Understanding variance & risk is key, whether it’s in card games or sports betting. Secure platforms like luckymax online casino prioritize player safety โ€“ crucial for responsible gaming & enjoying the experience!

jiliok

Great insights! Balancing fun and responsibility is key in gaming. Platforms like JiliOK Link set a good example by integrating smart tech for safer play.

mxgoodjuego

I’ve been trying my luck at mxgoodjuego lately and it’s been a fun ride. They have some interesting game collections i’ve not seen elsewhere. I would recommend to check it out mxgoodjuego myself.

sugarrushcasino

Sugarrushcasino is awesome! The colors on the page makes you want to place bets all day long. Its a fun ride with some exciting games sugarrushcasino.

chillbetmx

Yo, chillbetmx, this place is legit! Been hitting some decent wins lately. The vibe is cool, and the games are fun. Definitely worth checking it out! Give chillbetmx a shot, you might get lucky too!

jili 56

Excellent breakdown of Windows architecture! Understanding the User Mode/Kernel Mode separation is crucial for secure software development. This foundation helps appreciate why modern platforms like jili 56 app download apk implement robust security layers to protect user data while maintaining smooth performance across different hardware configurations.