Windows
pub add win32import 'package:dcli/windows.dart';
import 'package:win32/win32.dart';Windows Registry
import 'dart:io';
import 'package:dcli/dcli.dart;
void main() {
if (Plaform.isWindows) {
regSetString(HKEY_CURRENT_USER, 'Environment', 'PATH_TEST', 'HI');
}
else {
/// do some posix stuff.
}
}Windows specific functions
regAppendToPath
regIsOnUserPath
regPrependToPath
regGetUserPath
regSetString
regSetNone
regGetString
regSetDWORD
regGetDWORD
regDeleteKey
regDeleteValue
regGetExpandString
regSetExpandString
regKeyExists
regCreateKey
Last updated
Was this helpful?