summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-02-11 14:09:38 -0600
committerBryan McLellan <btm@opscode.com>2015-02-17 09:24:44 -0500
commit31b4c42dd6bb43ceb89762ba083e45dcd73152e8 (patch)
tree46a9103677a8f5084e284b91302718695d190036
parent2bc18e9dfbb23bfd74408b0c2bdec46abc616975 (diff)
downloadchef-31b4c42dd6bb43ceb89762ba083e45dcd73152e8.tar.gz
Added SecurityImpersonationLevel enum
-rw-r--r--lib/chef/win32/api/security.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/win32/api/security.rb b/lib/chef/win32/api/security.rb
index 7ca2d70c8e..cd6c409f17 100644
--- a/lib/chef/win32/api/security.rb
+++ b/lib/chef/win32/api/security.rb
@@ -270,6 +270,15 @@ class Chef
:MaxTokenInfoClass
]
+ # https://msdn.microsoft.com/en-us/library/windows/desktop/aa379572%28v=vs.85%29.aspx
+ SECURITY_IMPERSONATION_LEVEL = enum :SECURITY_IMPERSONATION_LEVEL, [
+ :SecurityAnonymous,
+ :SecurityIdentification,
+ :SecurityImpersonation,
+ :SecurityDelegation
+ ]
+
+
# SECURITY_DESCRIPTOR is an opaque structure whose contents can vary. Pass the
# pointer around and free it with LocalFree.
# http://msdn.microsoft.com/en-us/library/windows/desktop/aa379561(v=vs.85).aspx