Hi,
I'd like to associate a file type I have created (*.hwld) with my program, without the user having to manually set this in the file options.
The goal is that the file should be opened in my program when it is double clicked, and I want to be able to set a pretty default icon for these files.

After some reading, I have found out that this requires me to write several keys in HKEY_CLASSES_ROOT.
The sys_set--- functions only allow me to write into HKEY_CURRENT_USER and its subkeys.

Is there a way I can write these keys directly from within the engine, or will I have to create a seperate program to do this for me?

I do see that it is possible to do some pretty nasty hacky stuff with the registry, so I do understand why the registry is (apparently) locked down in these functions.