使用C ++编辑注册表 [英] Using C++ to edit the registry

查看:119
本文介绍了使用C ++编辑注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个有限的c ++背景,我想编辑注册表。例如,我想获取 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun 的值,然后检查是否0x20在它,然后如果是,从它的值减去0x20,然后写回(并杀死并重新启动explorer.exe,但我可以自己解决)。


$ b $

解决方案


I have a limited c++ background and I would like to edit the registry. For example, I want to grab the value of HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun and check to see if 0x20 is in it, and then if it is, subtract 0x20 from it's value and write it back (and kill and restart explorer.exe but I can figure that out on my own).

How would you do it?

解决方案

这篇关于使用C ++编辑注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆