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

A modern, type-safe Dart API for accessing and managing the Windows Registry.

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

A modern, type-safe Dart API for accessing and managing the Windows Registry.

This package builds on top of the package:win32 and provides a high-level abstraction over native registry APIs. It eliminates the need to work directly with FFI, raw pointers, or low-level Win32 calls while preserving performance and correctness.

✨ Features #

  • Key Management — Create, open, delete, and rename registry keys.
  • Typed Values — Read and write strings, integers, binary data, and multi-string values using strongly typed APIs.
  • Change Monitoring — Listen for registry modifications.
  • Metadata Queries — Inspect subkeys, values, sizes, and timestamps.
  • Transaction Support — Perform registry operations atomically.

⚡ Quick Example #

Reads the Windows build number from the registry:

import 'package:win32_registry/win32_registry.dart';

void main() {
  final key = LOCAL_MACHINE.open(
    r'Software\Microsoft\Windows NT\CurrentVersion',
  );
  final buildNumber = key.getString('CurrentBuild');
  if (buildNumber != null) {
    print('Windows build number: $buildNumber');
  }
  key.close();
}

📝 Documentation #

Full API reference is available here:

👉 API Reference.

Additional usage examples are located in the example directory.

🐞 Features and Bugs #

If you encounter bugs or need additional functionality, please file an issue.

67
likes
160
points
2.29M
downloads

Publisher

verified publisherhalildurmus.dev

Weekly Downloads

A modern, type-safe Dart API for accessing and managing the Windows Registry.

Repository (GitHub)
View/report issues
Contributing

Topics

#registry #win32 #ffi #windows

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, ffi, ffi_leak_tracker, meta, win32

More

Packages that depend on win32_registry