skip to main content

Library Routines : REG_CLOSE_KEY, DISPLAY_REG_CLOSE_KEY

REG_CLOSE_KEY, DISPLAY_REG_CLOSE_KEY
The REG_CLOSE_KEY library routine closes a registry key.
To perform this action on the Windows client machine in an Application Server architecture, use DISPLAY_REG_CLOSE_KEY instead of REG_CLOSE_KEY.
Syntax:
 CALL "REG_CLOSE_KEY" USING openKey
Parameters:
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 - Close an opened key
working-storage section.
copy "isreg.def".
01  open-key-handle         usage unsigned-long.
01  subkey-handle           usage unsigned-long.
77  status-code             pic 9(3).
procedure division.
   move hkey_local_machine to open-key-handle
   call "reg_open_key"  using open-key-handle
   call "reg_close_key" using open-key-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