win32_registry 1.1.3 copy "win32_registry: ^1.1.3" to clipboard
win32_registry: ^1.1.3 copied to clipboard

A package that provides a friendly Dart API for accessing the Windows Registry.

ci Package: win32_registry Publisher: halildurmus.dev Language: Dart License: BSD-3-Clause codecov

A package that provides a friendly Dart API for accessing the Windows Registry.

This package builds on top of the Dart win32 package, offering a high-level Dart wrapper that avoids the need for users to understand FFI or write directly to the Win32 API.

Usage #

A simple example that reads the Windows build number from the Windows Registry:

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();
}

More examples can be found in the example\ subdirectory.

44
likes
140
pub points
95%
popularity

Publisher

verified publisherhalildurmus.dev

A package that provides a friendly Dart API for accessing the Windows Registry.

Repository (GitHub)
View/report issues

Topics

#registry #win32 #ffi #windows

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

ffi, win32

More

Packages that depend on win32_registry