Next Topic

Previous Topic

Book Contents

Open

bool Open(int iKey,string sKey)

Return values

Non zero if the function is successful; otherwise 0, and a error description can be retrieved by calling GetErrorDescription().

Parameters

  • iKey - A key that represents one of the registry hives.
  • bCreate - A sub-key in the selected registry hive.

Remarks

The function opens a registry key in the selected registry hive. Note that the credentials of the process (either the IDE or Network Monitor) can restrict access to certain keys and hives. The following constants are defined for iKey:

  • CLASSES_ROOT
  • CURRENT_CONFIG
  • CURRENT_USER
  • LOCAL_MACHINE
  • PERFORMANCE_DATA
  • USERS