Skip to content
class method

Win32::Registry.open

open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED)
open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) { |reg| ... }

Open the registry key subkey under key. key is Win32::Registry object of parent key. You can use predefined key HKEY_*. desired and opt is access mask and key option.

For detail, see the MSDN.

If block is given, the key reg is yielded and closed automatically after the block exists.

See also .expand_environ .time2wtime .create .type2name also in 3.4 · 3.3 · 3.2 · 3.1 · 3.0