Step Into Labs

Step Into C · Lesson 24 · Windows C

The Real Windows API

windows.h, GetLastError, file handles, virtual memory, GetProcAddress and your own PE headers.

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.

In the Windows-style lesson you implemented imitations of API functions. This lesson calls the real Win32 API: #include <windows.h>, and every function used here is one Windows itself exports from kernel32.dll.

In this lesson

Missions

  1. Hello, kernel32
  2. Files through handles
  3. Pages of memory
  4. Look it up yourself
  5. Read your own headers