win32_registry 1.0.0 win32_registry: ^1.0.0 copied to clipboard
A set of helper classes for working with the Windows registry.
import 'package:win32_registry/win32_registry.dart';
void main() {
final key = Registry.openPath(RegistryHive.localMachine,
path: r'SOFTWARE\Microsoft\Windows NT\CurrentVersion');
final buildNumber = key.getValueAsString('CurrentBuild');
if (buildNumber != null) {
print('Windows build number: $buildNumber');
}
}