[Qt-interest] Registry Virtualization in Windows Vista and QSettings
Marco Borm
qt-lists at retrodesignfan.eu
Tue Nov 3 23:05:29 CET 2009
Adding a manifest with requestedExecutionLevel to your application
disables any of these "legacy application"-visualization.
At least every developer which tries to access non-user specific
configuration or files should add a manifest, so just do the same.
http://msdn.microsoft.com/en-us/library/bb756929.aspx
Marco
Anthony Serdyukov 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list