summaryrefslogtreecommitdiff
path: root/lib/chef/win32
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-09-09 17:44:36 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-09-11 12:12:55 -0700
commit3f01d0a3ad058e3b21244d205ac1a7ad793875dc (patch)
treec0304f06d6c15f461c18a6ac411abdfc2275f37b /lib/chef/win32
parente6613a101de325caab78a1b392d0a149d02e270c (diff)
downloadchef-3f01d0a3ad058e3b21244d205ac1a7ad793875dc.tar.gz
Use windows api to expand path. Cleaned up tests
Diffstat (limited to 'lib/chef/win32')
-rw-r--r--lib/chef/win32/api/system.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/win32/api/system.rb b/lib/chef/win32/api/system.rb
index a58c0f38f4..d57699acb4 100644
--- a/lib/chef/win32/api/system.rb
+++ b/lib/chef/win32/api/system.rb
@@ -200,6 +200,15 @@ LRESULT WINAPI SendMessageTimeout(
safe_attach_function :SendMessageTimeoutW, [:HWND, :UINT, :WPARAM, :LPARAM, :UINT, :UINT, :PDWORD_PTR], :LRESULT
safe_attach_function :SendMessageTimeoutA, [:HWND, :UINT, :WPARAM, :LPARAM, :UINT, :UINT, :PDWORD_PTR], :LRESULT
+=begin
+DWORD WINAPI ExpandEnvironmentStrings(
+ _In_ LPCTSTR lpSrc,
+ _Out_opt_ LPTSTR lpDst,
+ _In_ DWORD nSize
+);
+=end
+ safe_attach_function :ExpandEnvironmentStringsW, [:pointer, :pointer, :DWORD], :DWORD
+ safe_attach_function :ExpandEnvironmentStringsA, [:pointer, :pointer, :DWORD], :DWORD
end
end
end