The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CProcessToken Class Reference

Collaboration diagram for CProcessToken:

List of all members.

Public Types

typedef std::list
< Privilege

Public Member Functions

 CProcessToken ()
 CProcessToken (DWORD desiredAccess)
 CProcessToken (const CSmartHandle &hToken)
 CProcessToken (HANDLE hToken)
 CProcessToken (const CProcessToken &rhs)
 ~CProcessToken ()
CProcessTokenoperator= (const CProcessToken &rhs)
bool IsUserAnAdmin () const
bool HasPrivilege (const Core::_tstring &privilege) const
bool IsPrivilegeEnabled (const Core::_tstring &privilege) const
void EnablePrivilege (const Core::_tstring &privilege)
void DisablePrivilege (const Core::_tstring &privilege)
void RemovePrivilege (const Core::_tstring &privilege)
bool EnablePrivilegeIfPossible (const Core::_tstring &privilege)
bool DisablePrivilegeIfPossible (const Core::_tstring &privilege)
bool RemovePrivilegeIfPossible (const Core::_tstring &privilege)
Privileges GetPrivileges () const


class  Enabler
class  OptionalEnabler
struct  Privilege

Member Typedef Documentation

typedef std::list<Privilege> Privileges

Constructor & Destructor Documentation

CProcessToken (  ) 

CProcessToken ( DWORD  desiredAccess  )  [explicit]

CProcessToken ( const CSmartHandle hToken  )  [explicit]

CProcessToken ( HANDLE  hToken  )  [explicit]

CProcessToken ( const CProcessToken rhs  ) 

~CProcessToken (  ) 

Member Function Documentation

CProcessToken& operator= ( const CProcessToken rhs  ) 

bool IsUserAnAdmin (  )  const

bool HasPrivilege ( const Core::_tstring privilege  )  const

bool IsPrivilegeEnabled ( const Core::_tstring privilege  )  const

void EnablePrivilege ( const Core::_tstring privilege  ) 

void DisablePrivilege ( const Core::_tstring privilege  ) 

void RemovePrivilege ( const Core::_tstring privilege  ) 

bool EnablePrivilegeIfPossible ( const Core::_tstring privilege  ) 

bool DisablePrivilegeIfPossible ( const Core::_tstring privilege  ) 

bool RemovePrivilegeIfPossible ( const Core::_tstring privilege  ) 

CProcessToken::Privileges GetPrivileges (  )  const

Generated on Sun Sep 12 19:11:41 2021 for The Server Framework - v7.4 by doxygen 1.5.3