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.
- ~40 minreading and coding
- 4missions
- membersaccess
- Win32real Windows API
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
- The layers under CreateFileW
- NTSTATUS
- What a system call looks like
- Calling ntdll yourself
Missions
- Find ntdll
- Ask the kernel directly
- NTSTATUS vs Win32 errors
- Which Windows is this?