key
Name of key under which new subkey is to be created (blank if top level)
subkey
Name of new subkey
Description
The function gCreateRegistryKey() creates a new subkey under an existing key in the top level registry within the Windows Registry. If the new subkey is to be created immediately under the top level registry then key should be set to the null or blank string.
The function returns a zero value if the creation is successful, or a system error code if not.