关闭

注册表加键和键值

590人阅读 评论(0) 收藏 举报
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/
Windows/CurrentVersion/Policies/Explorer
SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/ Policies/Explorer", " NoRun ", "1", REG_DWORD
以上是在HKEY_CURRENT_USER,
"Software/Microsoft/Windows/ CurrentVersion/Policies/Explorer里面加上一个键并设置键值为1的REG_DWORD格式, 这个是用来屏蔽开始菜单里的运行的,
    
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/Windows /CurrentVersion/Policies/Explorer"
SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/Explorer", "NoFind", "1", REG_DWORD
这段代码是用来屏蔽查找的, 就是说在你的计算机的开始菜单里会找不到这一项,
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft /Windows/CurrentVersion/Policies/Explorer"
SetKeyValueHKEY_CURRENT_USER,"Software/Microsoft/Windows /CurrentVersion/Policies/Explorer", "NoLogOff", "1", REG_DWORD
这段是用来屏蔽注销的
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft /Windows/CurrentVersion/Policies/Explorer"
SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/Explorer", "NoClose", "1", REG_DWORD
这段是用来屏蔽关闭计算机的
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/System"
SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/System", "DisableTaskMgr", "1", REG_DWORD
这段是用来屏蔽任务管理器的
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/Windows /CurrentVersion/Policies/System"
SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/System", "DisableRegistryTools", "1", REG_DWORD
这段是用来禁止使用注册表的
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/Explorer"
SetKeyValueHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/Explorer", " NoDesktop ", "1", REG_DWORD
这段是用来隐藏桌面的
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/Explorer"
SetKeyValueHKEY_CURRENT_USER,"Software/Microsoft/Windows/ CurrentVersion/Policies/Explorer", "NoDrives", "1", REG_DWORD
这段是用来屏蔽A盘的,键值1代表A盘,2代表B盘, 4代表C盘,8代表D盘,就是说二倍二倍的下去代表下一个盘。
 
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:105740次
    • 积分:1543
    • 等级:
    • 排名:千里之外
    • 原创:37篇
    • 转载:30篇
    • 译文:0篇
    • 评论:22条
    最新评论
    javascript