Skip to content

Reg_Close_Key

Obsolete

This command is obsolete. Use the cRegistry class for accessing the Windows Registry in DataFlex.

Purpose

To close a registry key named hKey.

Syntax

REG_CLOSE_KEY hKey TO bValue

What It Does

This command closes an open registry key. Use REG_CREATE_KEY or REG_OPEN_KEY to open the registry key.

Example

Handle hKey
Reg_Open_Key ;
    "HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Print\Printers\HP LaserJet 4M/Plus" ;
    To hKey
Reg_Close_Key hKey