Windows has functions in the Windows API for using the registry:
Registry Reference
Ofcourse you will need the Windows SDK to be able to use those API functions. Note that the documentation for each of the functions has information about in which library the function exists and which header files from the Windows SDK you need to include.