My question is a bit related to this one but it\'s not what I was aiming for:
programmatically merge .reg file into win32 registry
What I want to do is to creat
Just been looking for this myself, and the answer is RegLoadKey()
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724889%28v=vs.85%29.aspx
Since regedit.exe created the reg file in the first place, I'm not really sure why you wouldn't also want it to do the import.
One other option would be to parse the reg file and then convert the parsed information into direct calls to the RegCreateKey, RegSetValue Win32 API functions, but I suspect that would be a fair amount of coding effort.