Search packages, repositories and app categories

GitHub repositoryhalildurmus/win32_registry

win32_registry

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

win32_registry project cover
Stars
42
Forks
8
Last push (UTC)
Feb 26, 2026
Project status
Archived

Original README

English project snapshot. Visit GitHub for the latest content.

This package has moved

The package can now be found at https://github.com/halildurmus/win32/tree/main/packages/win32_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.

🚀 Getting Started

Add the package to your pubspec.yaml:

dependencies:
  win32_registry: ^3.0.0

Then import it:

import 'package:win32_registry/win32_registry.dart';

⚡ Quick Example

Reads the Windows build number from the registry:

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.

Halil Durmus GitHub avatar
GitHub author

Halil Durmus ↗

Software Engineer • Dart Enthusiast💙🎯

LanguagesDart

Categories

Dependencies used

Dependency list 9 items

  • collection^1.19.1
  • ffi^2.2.0
  • ffi_leak_tracker^0.1.0
  • meta^1.17.0
  • win32^6.0.0
  • checksDevelopment^0.3.1
  • halildurmus_hooksDevelopment^0.1.1
  • halildurmus_lintsDevelopment^2.0.0
  • testDevelopment^1.29.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗