summaryrefslogtreecommitdiff
path: root/lib/chef/win32/api
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2015-08-19 12:08:45 -0700
committerSalim Alam <salam@chef.io>2015-08-19 12:08:45 -0700
commitb39409b4e3506c658b68f2b39a1005b7d5e36651 (patch)
tree043be183f5a6b92800d3f09e66af05b72b7389c3 /lib/chef/win32/api
parent3943e3036768785918169a7168e35154a6231d17 (diff)
parent6c4cd5c6d5c40baca723bf95cdbccdda59021198 (diff)
downloadchef-b39409b4e3506c658b68f2b39a1005b7d5e36651.tar.gz
Merge pull request #3775 from chef/salam/win64
Enable 64-bit support for Powershell and Batch scripts
Diffstat (limited to 'lib/chef/win32/api')
-rw-r--r--lib/chef/win32/api/system.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/chef/win32/api/system.rb b/lib/chef/win32/api/system.rb
index d57699acb4..a485f89708 100644
--- a/lib/chef/win32/api/system.rb
+++ b/lib/chef/win32/api/system.rb
@@ -187,6 +187,29 @@ int WINAPI GetSystemMetrics(
safe_attach_function :GetSystemMetrics, [:int], :int
=begin
+UINT WINAPI GetSystemWow64Directory(
+ _Out_ LPTSTR lpBuffer,
+ _In_ UINT uSize
+);
+=end
+ safe_attach_function :GetSystemWow64DirectoryW, [:LPTSTR, :UINT], :UINT
+ safe_attach_function :GetSystemWow64DirectoryA, [:LPTSTR, :UINT], :UINT
+
+=begin
+BOOL WINAPI Wow64DisableWow64FsRedirection(
+ _Out_ PVOID *OldValue
+);
+=end
+ safe_attach_function :Wow64DisableWow64FsRedirection, [:PVOID], :BOOL
+
+=begin
+BOOL WINAPI Wow64RevertWow64FsRedirection(
+ _In_ PVOID OldValue
+);
+=end
+ safe_attach_function :Wow64RevertWow64FsRedirection, [:PVOID], :BOOL
+
+=begin
LRESULT WINAPI SendMessageTimeout(
_In_ HWND hWnd,
_In_ UINT Msg,