In Windows this is easy to do via a system call to the OS Registry. Does anyone know how to do this on Linux system?

Thanks in advance,
iDaniela