I need to create a registry hive in Windows NT under HKLM. I get an error trying to write to the registry. How, and what code can I use to get past this problem? Do I need to call an API? if so how and could you please illustrate. Also am I able to have the program call a .reg file to make the changes?