[Qt-interest] Registry Virtualization in Windows Vista and QSettings

Constantin Makshin cmakshin at gmail.com
Tue Nov 3 22:42:51 CET 2009


http://msdn.microsoft.com/en-us/library/bb776463.aspx

But why do you need to write to the system part of the registry?

On Tue, 03 Nov 2009 08:29:29 +0300, Anthony Serdyukov  
<uksus70+qt at gmail.com> wrote:
> Good day.
>
> I have met a little problem. Consider the following code.
>
> QSettings setting(QSettings::SystemScope, "MyOrg", "MyApp");
> qDebug() << settings.isWritable();
>
> It always print true despite of whether it is run by an elevated user
> or not. I guess the cause is Registry Virtualization
> (http://msdn.microsoft.com/en-us/library/bb530198.aspx).
>
> Does anybody know, is there any way to truly detect write access
> possibility? Or perhaps detect whether current process is run in an
> elevated mode?
>
> Regards,
> Anthony

-- 
Constantin Makshin



More information about the Qt-interest-old mailing list