Interface Win32RegistryAccessor

    • Method Detail

      • readRegistryText

        @Nullable
        String readRegistryText​(@NotNull
                                Win32RegistryAccessor.Hive hive,
                                @NotNull
                                Bitness bitness,
                                @NotNull
                                String keyPath,
                                @NotNull
                                String entryName)
        Tries to read registry
        Parameters:
        hive - hive to look into
        bitness - registry branch - x32 or x64.
        keyPath - path to read.
        entryName - key to read
        Returns:
        read value or null
      • readRegistryFile

        @Nullable
        File readRegistryFile​(@NotNull
                              Win32RegistryAccessor.Hive hive,
                              @NotNull
                              Bitness bitness,
                              @NotNull
                              String keyPath,
                              @NotNull
                              String entryName)
        Tries to read registry
        Parameters:
        hive - hive to look into
        bitness - registry branch - x32 or x64.
        keyPath - path to read.
        entryName - entryName to read
        Returns:
        read File if read text is a path to an existing file or null
      • listSubKeys

        @NotNull
        Set<String> listSubKeys​(@NotNull
                                Win32RegistryAccessor.Hive hive,
                                @NotNull
                                Bitness bitness,
                                @NotNull
                                String keyPath)
        Enumerates sub key names of a given keyPath. i.e. for HKLM/Software/Microsoft it will definitely return 'Windows'
        Parameters:
        hive - hive
        bitness - registry branch - x32 or x64.
        keyPath - path to search
        Returns:
        key names without paths
      • listValueNames

        @NotNull
        Set<String> listValueNames​(@NotNull
                                   Win32RegistryAccessor.Hive hive,
                                   @NotNull
                                   Bitness bitness,
                                   @NotNull
                                   String keyPath)
        Enumerates value names of a given keyPath.
        Parameters:
        hive - hive
        bitness - registry branch - x32 or x64.
        keyPath - path to search
        Returns:
        entries names without paths