IRegNode::Set
[This is preliminary documentation and subject to change.]
Opens a Registry Key.
Use this method to open a System Registry key. The RootKey argument can be one of the predefined Registry Root handles:
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_USER
- HKEY_LOCAL_MACHINE
- HKEY_USERS
- HKEY_PERFORMANCE_DATA
- HKEY_CURRENT_CONFIG
- HKEY_DYN_DATA
Use the ReadOnly argument to specify the desired access rights you wish to access the Registry key with.
HRESULT Set(
HKEY RootKey,
BSTR Key,
VARIANT_BOOL ReadOnly,
);
|
Parameters
- RootKey
- [in] A valid HKEY constant.
- Key
- [in] The subkey to open.
- ReadOnly
- [in, defaultvalue(-1)] Desired access rights.
Return Values
- S_OK
- The operation was successfull.
- E_UNEXPECTED
- An unexpected error occoured.
- E_FAIL
- A general error occoured.
See Also
IRegNode