skip to main content

Library Routines : REG_QUERY_VALUE_EX, DISPLAY_REG_QUERY_VALUE_EX

REG_QUERY_VALUE_EX, DISPLAY_REG_QUERY_VALUE_EX
The REG_QUERY_VALUE_EX library routine retrieves the type and data for the specified value name associated with an open registry key.
To perform this action on the Windows client machine in an Application Server architecture, use DISPLAY_REG_QUERY_VALUE_EX instead of REG_QUERY_VALUE_EX.
Syntax:
 CALL "REG_QUERY_VALUE_EX" USING openKey
Parameters:
This handle is returned by the REG_CREATE_KEY, REG_CREATE_KEY_EX, REG_OPEN_KEY or REG_OPEN_KEY_EX library routine, or it can be one of the following predefined keys, defined in isreg.def:
Return code:
returnCode can be any signed numeric data item and provides additional information:
Operation failed. Click here for a list of error codes.
Examples:
Example - Query a value
working-storage section.
copy "isreg.def".
01 subkey-handle    usage unsigned-long.
77 status-code      pic 9(3).
77 value-name       pic x(20).
77 value-data       pic x(50).
77 data-size        usage unsigned-long.
procedure division.
   move "iscobol-value"  to value-name
   set data-size to size of value-data
   call "reg_query_value_ex" using subkey-handle

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left