Method: Chef::Util::Windows::LogonSession#close
- Defined in:
- lib/chef/util/windows/logon_session.rb
#close ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/chef/util/windows/logon_session.rb', line 62 def close validate_session_open! if impersonating restore_user_context end Chef::ReservedNames::Win32::API::System.CloseHandle(token.read_ulong) @token = nil @session_opened = false end |