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

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

example/example.dart

// Copyright (c) 2023, Dart | Windows. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

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();
}
55
likes
0
pub points
95%
popularity

Publisher

verified publisherhalildurmus.dev

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

Homepage
Repository (GitHub)
View/report issues

Topics

#registry #win32 #ffi #windows

License

unknown (license)

Dependencies

ffi, win32

More

Packages that depend on win32_registry