如何用VB按钮编写禁用注册表
来源:百度知道 编辑:UC知道 时间:2024/05/23 19:21:57
我想在VB程序上加个按钮,点击此按钮以后就禁止打开注册表编辑器
可以这样:
禁用:
shell "reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v disableregistrytools /t REG_DWORD /d 2 /f"
恢复:
shell "reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v disableregistrytools /f"
注意空格~~