声明, 不赞成使用这个函数. 请使用dos_regsetint或dos_regsetstr.
在注册表中添加一个字符串值Sets a string value or adds a key in the Windows Registry.
警告: 使用不当会导致严重的问题, 甚至需要你重装系统. 小心使用.
(dos_regset key [name [value]])
key
注册表项.
name
要修改的值的名称.
value
要设置的值
如果未指定name则创建项.
如果未指定value则创建值.
否则如果成功, 返回设定的值.
nil 失败时.
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp")
"HKEY_CURRENT_USER\\Software\\MyApp"
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp" "MyItem1")
"MyItem1"
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp" "MyItem1" "True")
"True"
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp" "MyItem1" "False")
"False"