What would one need to do in order to access the windows registry?

Is this a ridiculously complex operation??

Does C or C++ even have the ability to do this directly?


Thanks