diff options
author | Claire McQuin <claire@chef.io> | 2015-09-01 15:27:48 -0700 |
---|---|---|
committer | Claire McQuin <claire@chef.io> | 2015-09-03 11:18:22 -0700 |
commit | 55a6507b98b69652d9b5c74f4209c6472e356834 (patch) | |
tree | b35cc82a0b5f5ff6488980197c910f7b2b6d1119 /lib/chef/win32/api | |
parent | 8143bf6010cfcef180a8bc85a5e71dc3eb1a8f81 (diff) | |
download | chef-55a6507b98b69652d9b5c74f4209c6472e356834.tar.gz |
Monkey-patch Win32::Registry::API::DeleteValue for Win32::Registry#delete_value.
Diffstat (limited to 'lib/chef/win32/api')
-rw-r--r-- | lib/chef/win32/api/registry.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/win32/api/registry.rb b/lib/chef/win32/api/registry.rb index 45b91d7d32..cbbf6b66bb 100644 --- a/lib/chef/win32/api/registry.rb +++ b/lib/chef/win32/api/registry.rb @@ -39,6 +39,12 @@ class Chef safe_attach_function :RegDeleteKeyExW, [ :HKEY, :LPCTSTR, :LONG, :DWORD ], :LONG safe_attach_function :RegDeleteKeyExA, [ :HKEY, :LPCTSTR, :LONG, :DWORD ], :LONG + # LONG WINAPI RegDeleteValue( + # _In_ HKEY hKey, + # _In_opt_ LPCTSTR lpValueName + # ); + safe_attach_function :RegDeleteValueW, [ :HKEY, :LPCTSTR ], :LONG + end end end |