SYS_CreateRegistryKey Function

Action

Creates a new key in the registry. Recursively creates any missing registry keys in the given keypath.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

bSuccess = SYS_CreateRegistryKey (rcCategory, sKeypath, sKeyname, sDefaultValue)
Variable Description
bSuccess True if the key was successfully created, false otherwise. BOOLEAN.
rcCategory The constant for the root key from mswconst.inc. For example HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE. LONG.
sKeypath The path to the registry key. STRING.
sKeyname The name of the registry key. STRING.
sDefaultValue The default value of the registry key. STRING.

Notes

Use the include file mswconst.inc to be able to reference key values.