createKey

createKey

Adds a key to the registry.

Method of

WinReg object

Syntax

int createKey ( String subkey, String classname);

Parameters

The method has the following parameters:

subkey
The key path to the appropriate location in the key hierarchy, such as "Software\\Netscape\\Navigator\\Mail".
classname
Usually an empty string. For information on this parameter, see the description of RegCreateKeyEx in your Windows API documentation.

Returns

0 if it succeeded; a nonzero number if it failed to schedule the creation. For a list of possible values, see Return Codes.

Description

The createKey method adds a key to the registry. You must add a key to the registry before you can add a value for that key.

Document Tags and Contributors

 Last updated by: Sheppy,