Retrieve a list of all the named values of the specified subkey.


First available in version 3.0 build 2039.

Input Parameters:

rootKey - The name of one of the main branches of the registry. Valid values include: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_USERS, HKEY_LOCAL_MACHINE, HKEY_PERFORMANCE_DATA, HKEY_CURRENT_CONFIG, and HKEY_DYN_DATA.

subKey - The name of the key whose values are to be enumerated. This key must be a subkey of the rootKey.

Output Parameters:

result - A list of names and values. Each name value pair is separated by carriage return (\r) character and each name and value is separated by a tab (\t) character. An empty string will be returned if the specified subkey has no values.

Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Registry.enumValues( paramsObject [, callbackParamsObject] [, errorParamsObject] );

Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Registry.enumValues( paramsObject );




var return_obj = ssCore.Registry.enumValues({rootKey:"HKEY_CURRENT_USER", subKey:"Software\\Test"});