Another example of how to use the winreg module. [1]