Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Former Member Absent Member.
Absent Member.
262 views

[archive] reg_query_value

[Migrated content. Thread originally posted on 25 January 2007]

I want to retrieve the name of the default email client (just the name, I don't want to actually launch it) found in the registry at:

HKLM\Software\Clients\Mail

So I have the following call:

CALL "REG_QUERY_VALUE" USING HKEY_LOCAL_MACHINE,
Q-RESULT,
Q-RESULT-SIZE,
Q-SUBKEY
GIVING Q-STATUS.

But I think it's trying to bring back every entry under that subkey, because I get a status of 234 which means that the result is too large for Q-RESULT.

Is there a way to only get the (Default) data value (i.e. "Outlook Express" in this case)? Or do I have to somehow enumerate the results?
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.