Next Topic

Previous Topic

Book Contents

Create

bool Create(string sKey)

Return values

Non zero if the function is successful; otherwise 0, and a error description can be retrieved by calling GetErrorDescription().

Parameters

  • sKey - A key that will be created.

Remarks

The Create() function creates the specified registry key. If the key already exists in the registry, the function opens it. The function can be used to create several keys at once. For example, a script can create a sub-key three levels deep by specifying a string in the following form:

subkey1\subkey2\subkey3