src/Common/Lsa/ImpersonatedUser.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc 
00004 {
00005     namespace LSA
00006     {
00008         class ImpersonatedUser : public LoggedOnUser
00009         {
00010         private:
00011             bool m_impersonated;
00012         public:
00013             ImpersonatedUser();
00014             virtual ~ImpersonatedUser();
00016             void Impersonate();
00018             void RevertToSelf();
00020             bool IsImpersonated() const { return m_impersonated; }
00021         };
00022     }
00023 }
00024 


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com