def GetValueByName ( self , name ) : pyregf_value = self . _pyregf_key . get_value_by_name ( name ) if not pyregf_value : return None return REGFWinRegistryValue ( pyregf_value )
python regkey get name of key
Retrieves a value by name .
def GetValueByName(self, name):
    """Retrieves a value by name.

    Value names are not unique and pyregf provides first match for the value.

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

    Returns:
      WinRegistryValue: Windows Registry value if a corresponding value was
          found or None if not.
    """
    pyregf_value = self._pyregf_key.get_value_by_name(name)
    if not pyregf_value:
      return None

    return REGFWinRegistryValue(pyregf_value)