CreateSubKey Method
Creates a new subkey.
Syntax
int CreateSubKey();
Remarks
This method creates a new subkey. Before calling this method the KeyId property must be set to a valid private key.
The following settings may optionally be set to define specific values for the created subkey:
Error Handling
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)