[Qt-interest] Registry Virtualization in Windows Vista and QSettings
Anthony Serdyukov
uksus70+qt at gmail.com
Tue Nov 3 06:29:29 CET 2009
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
More information about the Qt-interest-old
mailing list