Step Into Labs

Step Into C · Lesson 21 · Windows C

Reading Windows-Style C

Windows types, Hungarian notation, SAL annotations, the two-call pattern and cbSize.

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

Missions

  1. Ask for the size
  2. The second call
  3. Remember cbSize
  4. Wide strings