Method: Win32::Registry::API.DeleteKey

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

.DeleteKey(hkey, name) ⇒ Object

::Win32::Registry#delete_key uses RegDeleteKeyW. We need to use RegDeleteKeyExW to properly support WOW64 systems. Still a bug in trunk as of March 21, 2016 (Ruby 2.3.0)



54
55
56
# File 'lib/chef/monkey_patches/win32/registry.rb', line 54

def DeleteKey(hkey, name)
  check RegDeleteKeyExW(hkey, name.to_wstring, 0, 0)
end