How to write at HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE
I need to write some data to HKEY_CURRENT_USER( or HKEY_LOCAL_MACHINE)\SOFTWARE, is Qt has some standard function to do this?
And how it will work on *nix OS?
You may use "QSettings":http://doc.qt.nokia.com/4.7/qsettings.html for writing to registry.
Edit: QSettings may be used also for linux.
Tnx, this is solve my problem.
You can also use WIN32 API
Beware that on 64 bit Windows if your application is 32 bit the keys will go in HKLM\SOFTWARE\Wow6432Node even if you use QSettings("HKEY_LOCAL_MACHINE\SOFTWARE\Your key");