Hugh McMaster : reg: Parse the registry key using a helper function.