CreateSubKey Method
Creates a new subkey.
Syntax
ANSI (Cross Platform) int CreateSubKey(); Unicode (Windows) INT CreateSubKey();
- (void)createSubKey;
#define MID_KEYMGR_CREATESUBKEY 8 IPWORKSOPENPGP_EXTERNAL int IPWORKSOPENPGP_CALL IPWorksOpenPGP_KeyMgr_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
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 (C++)
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.)