|
|
|
| 19 February 2002 | ArrayEnumValue() |
| Author | Jens Meyer (sealeopard@usa.net) |
| Action | Creates an array of names of the registry entries contained in a registry key or subkey. |
| Syntax | ArrayEnumValue ($subkey) |
| Parameters | |
| Remarks | see http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000065 |
| Returns | Array containing the registry values |
| Dependencies | None. |
| Examples |
$retcode=ArrayEnumValue('HKEY_USERS\.Default')
|
| Source |
FUNCTION ArrayEnumValue ($regsubkey)
DIM $retcode, $valuecounter, $currentvalue, $valuearray
IF NOT KeyExist($regsubkey)
$arrayenumvalue=''
RETURN
ENDIF
$valuecounter=0
DO
$currentvalue=EnumValue($regsubkey,$valuecounter)
IF ($currentvalue <> 259) AND @error = 0
REDIM PRESERVE $valuearray[$valuecounter]
$valuearray[$valuecounter]=$currentvalue
$valuecounter=$valuecounter+1
ENDIF
UNTIL ($currentvalue = 259) OR @error
$arrayenumvalue=$valuearray
ENDFUNCTION ; - ArrayEnumValue -
|
|
|
|