diff options
author | adamedx <adamedx@gmail.com> | 2016-04-02 23:22:14 -0700 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2017-09-05 20:09:30 -0400 |
commit | d8fa21b9851b2a6d3c1ee370c8d0cfee8be278b4 (patch) | |
tree | ef63f7b277c30c4d1d48d944c3be3e219c56a7ef /lib/chef/win32/api/security.rb | |
parent | 2e9c29b0658136f0536d423ca71899a825f3920d (diff) | |
download | chef-d8fa21b9851b2a6d3c1ee370c8d0cfee8be278b4.tar.gz |
Windows thread alternate user impersonation support
Diffstat (limited to 'lib/chef/win32/api/security.rb')
-rw-r--r-- | lib/chef/win32/api/security.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/win32/api/security.rb b/lib/chef/win32/api/security.rb index a2cfe35dad..a6f79f5d7d 100644 --- a/lib/chef/win32/api/security.rb +++ b/lib/chef/win32/api/security.rb @@ -453,6 +453,8 @@ class Chef safe_attach_function :SetSecurityDescriptorSacl, [ :pointer, :BOOL, :pointer, :BOOL ], :BOOL safe_attach_function :GetTokenInformation, [ :HANDLE, :TOKEN_INFORMATION_CLASS, :pointer, :DWORD, :PDWORD ], :BOOL safe_attach_function :LogonUserW, [:LPTSTR, :LPTSTR, :LPTSTR, :DWORD, :DWORD, :PHANDLE], :BOOL + safe_attach_function :ImpersonateLoggedOnUser, [:HANDLE], :BOOL + safe_attach_function :RevertToSelf, [], :BOOL end end |