在Windows Vista中写入注册表 [英] Write to registry in Windows Vista

查看:204
本文介绍了在Windows Vista中写入注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从我的应用程序写入注册表,但当我这样做,我拒绝访问。当然,如果我以管理员身份运行应用程序。然而,随着我的应用,它不是由用户启动。它会自动启动。

I am trying to write to the registry from my application, but when I do I get access denied. Of course, it works if i run the app as Administrator. However, with my applcation, it is not initiated by the user. It start automatically.

所以,问题是,如何从C ++应用程序读/写自己的注册表项?

So, the question is, how do i read/write to my own registry key from the C++ app?

感谢任何帮助。

推荐答案

写入 HKEY_CURRENT_USER

查看此信息

Vista + VB.NET - 写入HKEY_LOCAL_MACHINE时拒绝访问

将字符串(REG_SZ)值写入注册表中C ++

如何在Vista中读取注册表分支HKEY_LOCAL_MACHINE?

这篇关于在Windows Vista中写入注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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