I'm trying to access this location of the windows registry - "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\MySampleTask"
.
This is the entry of a task created in windows scheduler.
I'm able to reach till here & fetch value -
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule"
QSettings currVersionKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\",QSettings::NativeFormat);
QStringList keylist = currVersionKey.childGroups();
bool bStatus = keylist.contains("TaskCache");
if(bStatus )
{
QVariant taskCache = currVersionKey.property("TaskCache"); // RETURNS NULL
}
How to access remaining folder i.e. "TaskCache\Tree\MySampleTask"
? Is there any way in Qt? By elevating to Administrator rights or any method of QSettings
that supports Administrator rights?