Using the Registry

The following sample code demonstrates how to use the registry functions.