搜索插件、代码仓与 APP 分类

GitHub 代码仓halildurmus/win32_registry

win32_registry

用于访问和管理 Windows 注册表的现代、类型安全的 Dart API。

win32_registry 项目封面
星标
42
复刻
8
最近推送(UTC)
2026年2月26日
项目状态
已归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

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 作者

Halil Durmus ↗

Software Engineer • Dart Enthusiast💙🎯

语言Dart

分类

使用的依赖

依赖清单 9 项

  • collection^1.19.1
  • ffi^2.2.0
  • ffi_leak_tracker^0.1.0
  • meta^1.17.0
  • win32^6.0.0
  • checks开发依赖^0.3.1
  • halildurmus_hooks开发依赖^0.1.1
  • halildurmus_lints开发依赖^2.0.0
  • test开发依赖^1.29.0

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

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

GitHub Docs — About repositories ↗