def GetValueByName(self, name):
if not self._registry_key and self._registry:<EOL><INDENT>self._GetKeyFromRegistry()<EOL><DEDENT>if not self._registry_key:<EOL><INDENT>return None<EOL><DEDENT>return self._registry_key.GetValueByName(name)<EOL>
Retrieves a value by name.

        Args:
          name (str): name of the value or an empty string for the default value.

        Returns:
          WinRegistryValue: Windows Registry value or None if not found.