Chapter 3. Accessing the registry