-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Bandwidth edited this page Nov 25, 2021
·
3 revisions
- getKey: Returns the contents of a registry key.
- createKey: Creates a registry key.
- deleteKey: Deletes a registry key.
- writeValue: Writes a registry value.
- deleteValue: Deletes a registry value.
- getValue: Returns a registry value.
returns a tree structure with the registry key
- the key-table has fields:
- key: the full key, eg.
"HKEY_CLASSES_ROOT\somekey\subkey\subsubkey" - keys:
table(indexed by name) with key-table of the sub key (same structure) - values:
table(indexed by name) with a values-table having fields:- value: the value.
- type: the registry value type, eg.
REG_SZ,REG_MULTI_SZ,etc. - name : the name.
- key: the full key, eg.
-
keystring- full key eg. `"HKLM\SOFTWARE\xPL" -
recursiveboolean- if truthy, then a recursive tree will be generated will all sub keys as well.
-
keystring- the registry key to create.
return true on success, nil, err on failure.
Deletes a key. (and all of its contents)
-
keystring- the registry key to delete.
return true on success, nil, err on failure. (deleting a non-existing key returns success)
writes a value, will overwrite existing values without prompt.
use name = "(Default)" (or nil) for default value
-
keystringthe registry key to which to add a value. -
namestringthe name of the value to add. -
vtypestringthe value type to add. -
value?the actual value.
return true on success, nil, err on failure.
use name = "(Default)" for default value, or name = nil
-
keystringthe registry key from which to delete a value. -
namestringthe name of the value to delete.
return true on success, nil, err on failure. (deleting a non-existing value returns success)
-
keystringthe registry key from which to get the value. -
namestringthe name of the value.
return value, type or nil if it doesn't exist.
Additional function: shellExecute - executes a shell command, Parameter: string