Windows7的注册表设置 [英] registry setting for windows7

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

问题描述

如何使用RegCreateKey(HKEY_CLASSES_ROOT,....)在Windows 7中创建和设置注册表?

谢谢,
Alex

How to create and set a registry in windows 7 using RegCreateKey( HKEY_CLASSES_ROOT,.......)?

Thanks,
Alex

推荐答案

如果启用了UAC,则需要先提升权限,然后再调用RegCreateKeyEx (不要调用RegCreateKey ,这已经过时了)现在).无论使用UAC,还是需要以管理员身份运行(尽管使用UAC仍需要提升权限才能使用实际的Admin特权运行).
If UAC is enabled, you will need to elevate permissions first, and then call RegCreateKeyEx (do not call RegCreateKey - it''s obsolete now). Irrespective of UAC, you still need to be running as an Administrator (although with UAC that will still require elevation to run with actual Admin privileges).


嗨AlexvGeorge,
Nishant是正确的.
您的应用程序必须以管理员身份运行,而不仅仅是您创建注册表.
您可以允许您的应用程序在具有提升权限的用户帐户控制(UAC)下运行.
如果您的应用程序是COM组件,则不使用Com Elevation Moniker,否则请更新属性ReuireAdministrator.
Hi AlexvGeorge,
Nishant is correct.
Your application must run as an admin than only you create registry.
you can allow your application to run under user account control (UAC) with elevated privileges.
If your application is COM component than use Com Elevation Moniker else Update property ReuireAdministrator.


希望注册表设置 [^ ]和
Hope Registry Setting[^]and this[^] will give you an idea.


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

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