A logged-on user.
More...
#include <LoggedOnUser.h>
List of all members.
Public Member Functions |
| | LoggedOnUser () |
| virtual | ~LoggedOnUser () |
| void | Logon (const std::wstring &username, const std::wstring &domain, const std::wstring &password, DWORD dwLogonType, DWORD dwLogonProvider=LOGON32_PROVIDER_DEFAULT) |
| | logon a user
|
| void | Logon (const std::wstring &username, const std::wstring &password, DWORD dwLogonType, DWORD dwLogonProvider=LOGON32_PROVIDER_DEFAULT) |
| | logon a user, supports various username syntaxes; supports domain\username and username@domain
|
| void | Logout () |
| | logout a user
|
| bool | IsLoggedOn () const |
| | returns true on logon
|
| Sid | GetSid () const |
| | returns the user SID
|
| std::vector< Sid > | GetGroups () const |
| | returns the user group memberships (SIDs)
|
| std::vector< Privilege > | GetPrivileges () const |
| | returns a set of privileges that the logged on user has
|
| bool | HasPrivilege (LUID luid) const |
| | return true if the user holds a specific privilege
|
Protected Attributes |
| HANDLE | m_hUser |
Detailed Description
Constructor & Destructor Documentation
| LoggedOnUser::LoggedOnUser |
( |
| ) |
|
| LoggedOnUser::~LoggedOnUser |
( |
| ) |
[virtual] |
Member Function Documentation
| std::vector< Sid > LoggedOnUser::GetGroups |
( |
| ) |
const |
returns the user group memberships (SIDs)
| std::vector< Privilege > LoggedOnUser::GetPrivileges |
( |
| ) |
const |
returns a set of privileges that the logged on user has
| Sid LoggedOnUser::GetSid |
( |
| ) |
const |
| bool LoggedOnUser::HasPrivilege |
( |
LUID |
luid | ) |
const |
return true if the user holds a specific privilege
| bool AppSecInc::LSA::LoggedOnUser::IsLoggedOn |
( |
| ) |
const [inline] |
| void LoggedOnUser::Logon |
( |
const std::wstring & |
username, |
|
|
const std::wstring & |
domain, |
|
|
const std::wstring & |
password, |
|
|
DWORD |
dwLogonType, |
|
|
DWORD |
dwLogonProvider = LOGON32_PROVIDER_DEFAULT |
|
) |
| |
| void LoggedOnUser::Logon |
( |
const std::wstring & |
username, |
|
|
const std::wstring & |
password, |
|
|
DWORD |
dwLogonType, |
|
|
DWORD |
dwLogonProvider = LOGON32_PROVIDER_DEFAULT |
|
) |
| |
logon a user, supports various username syntaxes; supports domain\username and username@domain
| void LoggedOnUser::Logout |
( |
| ) |
|
Member Data Documentation
The documentation for this class was generated from the following files: