Windows developers use this object to manipulate the content of the Windows registry.
WinReg Overview
This object does not have a public constructor. Instead, you construct an instance of this object by calling the
getWinRegistrymethod of theInstallobject.This discussion assumes you are already familiar with the Windows Registry. For information on it, see API documentation for Windows NT or Windows 95.
When you construct a
WinRegobject, it is set to operate withHKEY_CLASSES_ROOTas its root key. To use a different root key, use thesetRootKeymethod. Typically values in the Windows Registry are strings. To manipulate such values, use thegetValueStringandsetValueStringmethods. To manipulate other values, use thegetValueandsetValuemethods.Reading registry values is immediate. However, writing to the registry is delayed until
performInstallis called.Method Summary
createKey Adds a key. deleteKey Removes a key. deleteValue Removes the value of an arbitrary key. enumKeys Retrieves the registry subkeys for the given key. enumValueNames Retrieves the value of a given subkey. getValue Retrieves the value of an arbitrary key. getValueNumber Retrieves the value of a key, when that value is an integer. getValueString Retrieves the value of a key, when that value is a string. isKeyWritable Returns whether the given key is writable. keyExists Returns whether the given key exists or is readable. keyExists Changes the root key being accessed. setValue Sets the value of an arbitrary key. setValueNumber Sets the value of a key, when that value is an integer. setValueString Sets the value of a key, when that value is a string. valueExists Returns whether the given value exists. winRegValue Creates a WinRegValueobject.
| Netscape Communications devedge.netscape.com |