win32_registry library

A Dart library that provides support for querying and accessing the Windows Registry from Dart, with idiomatic classes and collections of objects that facilitate reading and writing values.

The Windows Registry is a system-defined database in which applications and system components store and retrieve configuration data. The data stored in the registry varies according to the version of Microsoft Windows. Applications use the registry API to retrieve, modify, or delete registry data.

For example:

import 'package:win32_registry/win32_registry.dart';

void main() {
  const keyPath = r'Software\Microsoft\Windows NT\CurrentVersion';
  final key = Registry.openPath(RegistryHive.localMachine, path: keyPath);

  final buildNumber = key.getValueAsString('CurrentBuild');
  if (buildNumber != null) {
    print('Windows build number: $buildNumber');
  }

  key.close();
}

The example demonstrates how to use this library to open a registry key, retrieve a value, and print it to the console.

Classes

PointerData
A class representing pointer data and its length in bytes.
Registry
Provides access to the Windows Registry as a database.
RegistryKey
An individual node in the Windows Registry.
RegistryKeyInfo
Represents information about a Windows Registry key.
RegistryValue
Represents an individual data value in the Windows Registry.

Enums

AccessRights
Represents a requested access right.
RegistryHive
One of the predefined keys that point into one or more hives that Windows stores.
RegistryValueType
A data type stored in the Windows Registry.