Chapter 4. Accessing the registry