Step Into C · Lesson 30 · Win32 in Depth
The Registry
Hives, keys and value types, RegGetValueW, enumerating values, and LSTATUS error codes.
- ~30 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.
The registry stores configuration as keys (like folders) that hold values (name, type, data). The top-level keys are the hives:
In this lesson
- A hierarchical database
- Value types
- Reading
- Errors are return values
- Access control
Missions
- Read a string
- Read numbers
- Enumerate values
- Know your limits