Step Into Labs

Step Into C · Lesson 31 · Inside Windows

ntdll & the Native API

How a Win32 call reaches the kernel: kernel32, ntdll, NTSTATUS, and what a system call is.

Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

Every program loads ntdll.dll, and it is always the first DLL in the loader's list. It contains:

In this lesson

Missions

  1. Find ntdll
  2. Ask the kernel directly
  3. NTSTATUS vs Win32 errors
  4. Which Windows is this?