Readonly
childThis attribute returns the number of child keys.
This attribute exposes the native HKEY and is available to provide C++ consumers with the flexibility of making other Windows registry API calls that are not exposed via this interface.
It is possible to initialize this object by setting an HKEY on it. In that case, it is the responsibility of the consumer setting the HKEY to ensure that it is a valid HKEY.
WARNING: Setting the key does not close the old key.
Readonly
valueThis attribute returns the number of values under this key.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
This method opens an existing key or creates a new key.
NOTE: On 32-bit Windows, it is valid to pass any HKEY as the rootKey parameter of this function. However, for compatibility with 64-bit Windows, that usage should probably be avoided in favor of createChild.
A root key defined above or any valid HKEY on 32-bit Windows.
A relative path from the given root key.
Access mode, which is a bit-wise OR of the ACCESS_ values defined above.
This method opens an existing key. This method fails if the key does not exist.
NOTE: On 32-bit Windows, it is valid to pass any HKEY as the rootKey parameter of this function. However, for compatibility with 64-bit Windows, that usage should probably be avoided in favor of openChild.
A root key defined above or any valid HKEY on 32-bit Windows.
A relative path from the given root key.
Access mode, which is a bit-wise OR of the ACCESS_ values defined above.
This method reads the binary contents of the named value under this key.
JavaScript callers should take care with the result of this method since it will be byte-expanded to form a JS string. (The binary data will be treated as an ISO-Latin-1 character string, which it is not).
The name of the value to query.
This method starts watching the key to see if any of its values have changed. The key must have been opened with mode including ACCESS_NOTIFY. If recurse is true, then this key and any of its descendant keys are watched. Otherwise, only this key is watched.
Indicates whether or not to also watch child keys.
This method writes the binary contents of the named value. The value will be created if it does not already exist.
JavaScript callers should take care with the value passed to this method since it will be truncated from a JS string (unicode) to a ISO-Latin-1 string. (The binary data will be treated as an ISO-Latin-1 character string, which it is not). So, JavaScript callers should only pass character values in the range \u0000 to \u00FF, or else data loss will occur.
The name of the value to modify.
The data for the value to modify.
This method writes the unicode string contents of the named value. The value will be created if it does not already exist.
The name of the value to modify. This parameter can be the empty string to modify the key's default value.
The data for the value to modify.
Generated using TypeDoc
This interface is designed to provide scriptable access to the Windows registry system ("With Great Power Comes Great Responsibility"). The interface represents a single key in the registry.
This interface is highly Win32 specific.