REGSTRING$ function
Purpose: REGSTRING$ returns the string data
for a specified value name associated with a registry key.
Syntax:
RetStr$ = REGSTRING$(HKEY, SubKey$, ValueName$)
Parameters:
- RetStr$ Data string retrieved from the specified registry key.
- HKEY A HANDLE to an open registry key, which can be one of the predefined
HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE,
HKEY_USERS, HKEY_CURRENT_CONFIG or HKEY_DYN_DATA keys that are always open.
- SubKey$ String containing the name of the subkey to open.
- ValueName$ String containing the name of a value from which
data is to be retrieved.
|
CREATEREGSTRING statement
Purpose: CREATEREGSTRING is used to create and update
Registry subkeys.
Syntax:
CREATEREGSTRING(HKEY, SubKey$, ValueName$, Value$)
Parameters:
- HKEY A HANDLE to an open registry key, which can be one of the predefined
HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE,
HKEY_USERS, HKEY_CURRENT_CONFIG or HKEY_DYN_DATA keys that are always open.
- SubKey$ String containing the name of the subkey to which
ValueName$ will be appended.
- ValueName$ String containing the name of a value.
- Value$ String containing the value associated with ValueName$.
|
DELETEREGKEY statement
Purpose: DELETEREGKEY is used to delete a Registry subkey
including all of its values.
Syntax:
DELETEREGKEY(HKEY, SubKey$)
Parameters:
- HKEY A HANDLE to an open registry key, which can be one
of the predefined HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE,
HKEY_USERS, HKEY_CURRENT_CONFIG or HKEY_DYN_DATA keys that are always open.
- SubKey$ String containing the name of the subkey to be deleted.
|
Example:
CONST HKLM = HKEY_LOCAL_MACHINE
DELETEREGKEY(HKLM, "Software\Bcx-32\Bcx\Settings")
CREATEREGSTRING(HKLM, "Software\Bcx-32\Bcx\Settings", "Path", "C:\bc")
PRINT RegString$(HKLM, "Software\Bcx-32\Bcx\Settings", "Path")
CREATEREGSTRING(HKLM, "Software\Bcx-32\Bcx\Settings", "Path", "C:\tools")
PRINT RegString$(HKLM, "Software\Bcx-32\Bcx\Settings", "Path")
CREATEREGSTRING(HKLM, "Software\Bcx-32\Bcx\Settings", "Vers", "3.78")
PRINT RegString$(HKLM, "Software\Bcx-32\Bcx\Settings", "Vers")
REGINT function
Purpose: REGINT returns the integer value
for a specified value name associated with a registry key.
.
Syntax:
RetVal% = REGINT(HKEY, SubKey$, ValueName$)
Parameters:
- RetVal%$ Integer value retrieved from the specified registry key.
- HKEY A HANDLE to an open registry key, which can be one of the predefined
HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE,
HKEY_USERS, HKEY_CURRENT_CONFIG or HKEY_DYN_DATA keys that are always open.
- SubKey$ String containing the name of the subkey to open.
- ValueName$ String containing the name of an integer value from which
data is to be retrieved.
|
CREATEREGINT statement
Purpose: CREATEREGINT is used to create and update
Registry subkeys.
Syntax:
CREATEREGINT(HKEY, SubKey$, ValueName$, Value%)
Parameters:
- HKEY A HANDLE to an open registry key, which can be one of the predefined
HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE,
HKEY_USERS, HKEY_CURRENT_CONFIG or HKEY_DYN_DATA keys that are always open.
- SubKey$ String containing the name of the subkey to which
ValueName$ will be appended.
- ValueName$ String containing the name of a value.
- Value% Integer containing the value associated with ValueName$.
|
Example:
CONST HKLM = HKEY_LOCAL_MACHINE
CREATEREGINT(HKLM, "Software\Chevy","Engine",350)
PRINT REGINT (HKLM, "Software\Chevy","Engine")