Security identifier: a data structure of variable length that identifies user, group, and computer accounts. More...
#include <Sid.h>
Public Member Functions | |
Sid () | |
default constructor | |
Sid (const Sid &sid) | |
copy a sid | |
Sid (PSID psid, SID_NAME_USE use=SidTypeInvalid) | |
copy a sid | |
Sid (const std::wstring &sid_string, SID_NAME_USE use=SidTypeInvalid) | |
convert a string to a sid | |
Sid & | operator= (const Sid &sid) |
copy a sid | |
Sid & | operator= (PSID psid) |
copy a sid | |
Sid & | operator= (const std::wstring &) |
convert a string to a sid | |
std::wstring | ToString () const |
return a string representation of a sid | |
std::wstring | ToHexString () const |
return a hexidecimal string reperesntation of the sid. | |
DWORD | GetLength () const |
return the length of the SID | |
PSID | GetPSID () const |
return a PSID | |
operator PSID () const | |
return a PSID | |
SID_NAME_USE | GetUse () const |
return the type of sid | |
void | Set (PSID psid, SID_NAME_USE use=SidTypeUnknown) |
set sid | |
void | Set (const std::wstring &sid_string, SID_NAME_USE use=SidTypeUnknown) |
set sid | |
bool | operator== (const Sid &) const |
compare two sids | |
bool | operator== (PSID) const |
compare two sids | |
bool | IsValid () const |
return true if SID is valid |
Security identifier: a data structure of variable length that identifies user, group, and computer accounts.
Sid::Sid | ( | ) |
default constructor
Sid::Sid | ( | const Sid & | sid | ) |
copy a sid
Sid::Sid | ( | PSID | psid, |
SID_NAME_USE | use = SidTypeInvalid |
||
) |
copy a sid
Sid::Sid | ( | const std::wstring & | sid_string, |
SID_NAME_USE | use = SidTypeInvalid |
||
) |
convert a string to a sid
DWORD Sid::GetLength | ( | ) | const |
return the length of the SID
PSID Sid::GetPSID | ( | ) | const |
return a PSID
SID_NAME_USE AppSecInc::LSA::Sid::GetUse | ( | ) | const [inline] |
return the type of sid
bool Sid::IsValid | ( | ) | const |
return true if SID is valid
AppSecInc::LSA::Sid::operator PSID | ( | ) | const [inline] |
return a PSID
Sid & Sid::operator= | ( | PSID | psid | ) |
copy a sid
Sid & Sid::operator= | ( | const std::wstring & | sid_string | ) |
convert a string to a sid
bool Sid::operator== | ( | PSID | psid | ) | const |
compare two sids
bool Sid::operator== | ( | const Sid & | sid | ) | const |
compare two sids
void Sid::Set | ( | PSID | psid, |
SID_NAME_USE | use = SidTypeUnknown |
||
) |
set sid
void Sid::Set | ( | const std::wstring & | sid_string, |
SID_NAME_USE | use = SidTypeUnknown |
||
) |
set sid
std::wstring Sid::ToHexString | ( | ) | const |
return a hexidecimal string reperesntation of the sid.
std::wstring Sid::ToString | ( | void | ) | const |
return a string representation of a sid
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |