Easy:RegDBDefaultRoot(HKEY_LOCAL_MACHINE); //Wish I don't write a wrong function name here
RegDBCreateKeyEx("System\\controlset001\\enum\\root\\Your_Key_Name","");Note:
The key created by RegDBCreateKeyEx shold be uninstalled while the application is uninstalled. To keep the settings after uninstalling the software, using:RegDBDefaultRoot(HKEY_LOCAL_MACHINE);
Disable(LOGGING);
RegDBCreateKeyEx("System\\controlset001\\enum\\root\\Your_Key_Name","");
Enable(LOGGING);