Step Into C · Lesson 21 · Windows C
Reading Windows-Style C
Windows types, Hungarian notation, SAL annotations, the two-call pattern and cbSize.
- ~40 minreading and coding
- 4missions
- membersaccess
- Clanguage
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.
Advanced Windows courses assume you can look at a signature on Microsoft Learn and immediately know how to call the function. Windows C looks unfamiliar at first, but it is plain C that you already know, dressed in typedefs and conventions.
In this lesson
- Why this lesson exists
- The type vocabulary
- Hungarian notation
- Reading a function signature
- Return values and GetLastError
- The two-call pattern
- The cbSize pattern
- Wide strings
- Handles
Missions
- Ask for the size
- The second call
- Remember cbSize
- Wide strings