ImpersonatedUser.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace LSA
6  {
9  {
10  private:
11  bool m_impersonated;
12  public:
14  virtual ~ImpersonatedUser();
16  void Impersonate();
18  void RevertToSelf();
20  bool IsImpersonated() const { return m_impersonated; }
21  };
22  }
23 }
24 
A logged-on user.
Definition: LoggedOnUser.h:8
void Impersonate()
impersonate the logged-on user
Definition: ImpersonatedUser.cpp:21
bool IsImpersonated() const
returns true if the user is impersonated
Definition: ImpersonatedUser.h:20
This class lets the calling thread manage the impersonated security context of a logged-on user...
Definition: ImpersonatedUser.h:8
void RevertToSelf()
revert to the prior security context of the currently impersonated thread
Definition: ImpersonatedUser.cpp:37
ImpersonatedUser()
Definition: ImpersonatedUser.cpp:7
virtual ~ImpersonatedUser()
Definition: ImpersonatedUser.cpp:13


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