Learn Windows programming in C and Rust: the Win32 API and what is underneath
Windows tools are written against the Win32 API, and the best of them understand the layer underneath it. These lessons teach you to read and write Windows-style C fluently, use the core API families correctly, then go one level down to ntdll, the Native API and the PEB. Every program runs on real Windows.
What you will be able to do
- Windows types, HANDLEs, UTF-16 (wide) strings and GetLastError conventions
- Files and directories, virtual memory and heaps
- Processes, threads and synchronization
- DLLs, LoadLibrary and GetProcAddress, and the registry
- ntdll, the Native API, NTSTATUS and the PEB
- The Windows API from Rust with safe wrappers, and from x64 assembly
Lessons to look at first
- Reading Windows-Style CStep Into C · Windows types, Hungarian notation, SAL annotations, the two-call pattern and cbSize.
- Strings & UnicodeStep Into C · char vs wchar_t, A vs W functions, UTF-8 and UTF-16, and the type names you will see everywhere.
- Errors & HandlesStep Into C · GetLastError and FormatMessage, the two "invalid handle" values, HRESULT, and handle lifetimes.
- The Real Windows APIStep Into C · windows.h, GetLastError, file handles, virtual memory, GetProcAddress and your own PE headers.
- Files & DirectoriesStep Into C · CreateFileW dispositions, sizes and seeking, listing directories, moving and deleting.
- Memory: Pages, Protections and HeapsStep Into C · VirtualAlloc reserve vs commit, VirtualProtect and VirtualQuery, private heaps, and when to use which.
- ProcessesStep Into C · Process ids vs handles, CreateProcessW, waiting and exit codes, STILL_ACTIVE, and capturing a child's output.
- Threads & SynchronizationStep Into C · CreateThread, waiting and exit codes, data races, Interlocked operations, critical sections and events.
- DLLs & Dynamic LoadingStep Into C · Imports vs LoadLibrary, GetProcAddress and typed function pointers, missing exports, and reference counts.
- The RegistryStep Into C · Hives, keys and value types, RegGetValueW, enumerating values, and LSTATUS error codes.
- ntdll & the Native APIStep Into C · How a Win32 call reaches the kernel: kernel32, ntdll, NTSTATUS, and what a system call is.
- The PEB & the LoaderfreeStep Into C · The process environment block, its fields, your command line, and the loader's list of modules.
- The Win64 Calling Convention in DepthStep Into x64 Assembly · Floating-point arguments in xmm registers, mixed arguments, varargs, alignment, and what you see in real Win32 disassembly.
- The Windows API from RustStep Into Rust · Declaring kernel32 functions, GetLastError, VirtualAlloc, GetProcAddress and your own PE headers.
- Safe Wrappers for Win32Step Into Rust · UTF-16 the std way, errors as Result with real messages, and handles that close themselves.
- DLLs, Threads and Modules from RustStep Into Rust · LoadLibraryW and GetProcAddress behind a safe type, std threads on Win32 threads, and module paths.
Who this is for
Developers building native Windows utilities, system tools, agents and security tooling, in C or Rust.
Questions
Do I need to install a compiler or debugger?
No. Everything runs in the browser: a Monaco code editor, and your code is built by real toolchains (gcc / MinGW-w64, the GNU assembler, rustc) on a sandboxed server. The Windows lessons call the real Win32 API on real Windows. There is also a built-in debugger (GDB underneath) that records your program so you can step forwards and backwards, and a disassembler with a control-flow graph.
Is it good preparation for reverse engineering, malware analysis or exploit development?
Yes, as a foundation. It teaches what those fields assume you already know: memory and pointers, how C becomes x64 assembly, the Win64 calling convention and stack frames, reading compiler output, binary layouts and the PE format, the Win32 API, ntdll, the Native API, the PEB and the loader. It is not a malware or exploitation course itself.
How is it different from video courses and tutorials?
You learn by writing code that is actually compiled and run, and every mission is graded by running your program against test inputs, so you know immediately whether it works and why not. The debugger can step backwards in time and shows the generated assembly next to your source.
How much does it cost?
Two complete lessons are free with no sign-up. Step Into C is $149, and the complete bundle with all three courses (C, x64 assembly and Rust) is $199, one-time. Step Into Labs is currently in closed beta.
Start with a free lesson
No sign-up: open the debugger lesson and run your first program in a few seconds.