Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

halildurmus/win32_registry

Open more actions menu

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.

Features

  • Manage Registry Keys: Create, open, delete, and rename registry keys.
  • Set and Get Values: Store and retrieve strings, integers, binary data, and string arrays.
  • Monitor Changes: Listen for changes in registry keys.
  • Query Key Details: Get information about subkeys and values within a registry key.

To learn more, see the API Documentation.

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.getStringValue('CurrentBuild');
  if (buildNumber != null) print('Windows build number: $buildNumber');

  key.close();
}

More examples can be found in the example subdirectory.

Feature requests and bugs

Please file feature requests and bugs at the issue tracker.

About

Interact with the Windows Registry.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors 5

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.