Method: Win32::Registry::API.DeleteValue

Defined in:
lib/chef/monkey_patches/win32/registry.rb

.DeleteValue(hkey, name) ⇒ Object

::Win32::Registry#delete_value uses RegDeleteValue which is not an imported function after bug 10820 was solved. So we overwrite it to call the correct imported function. bugs.ruby-lang.org/issues/10820 Still a bug in trunk as of March 21, 2016 (Ruby 2.3.0)



47
48
49
# File 'lib/chef/monkey_patches/win32/registry.rb', line 47

def DeleteValue(hkey, name)
  check RegDeleteValueW(hkey, name.to_wstring)
end