Registry.CreateKey

Registry.CreateKey ( 

number MainKey,

string SubKey )

Description

Creates a "key" in the user's Registry.

Note: Some locations in the Windows Registry cannot be modified in order to protect the operating system. This is something to consider when choosing a location to write information.

Parameters

MainKey

(number) The main or "root" key where you want to create the key. Choose from:

CONSTANT

VALUE

HKEY_CLASSES_ROOT

0

HKEY_CURRENT_CONFIG

1

HKEY_CURRENT_USER

2

HKEY_LOCAL_MACHINE

3

HKEY_USERS

4

SubKey

(string) The sub key to create.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions