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 More... | |
Sid (const Sid &sid) | |
copy a sid More... | |
Sid (PSID psid, SID_NAME_USE use=SidTypeInvalid) | |
copy a sid More... | |
Sid (const std::wstring &sid_string, SID_NAME_USE use=SidTypeInvalid) | |
convert a string to a sid More... | |
Sid & | operator= (const Sid &sid) |
copy a sid More... | |
Sid & | operator= (PSID psid) |
copy a sid More... | |
Sid & | operator= (const std::wstring &) |
convert a string to a sid More... | |
std::wstring | ToString () const |
return a string representation of a sid More... | |
std::wstring | ToHexString () const |
return a hexidecimal string reperesntation of the sid. More... | |
DWORD | GetLength () const |
return the length of the SID More... | |
PSID | GetPSID () const |
return a PSID More... | |
operator PSID () const | |
return a PSID More... | |
SID_NAME_USE | GetUse () const |
return the type of sid More... | |
void | Set (PSID psid, SID_NAME_USE use=SidTypeUnknown) |
set sid More... | |
void | Set (const std::wstring &sid_string, SID_NAME_USE use=SidTypeUnknown) |
set sid More... | |
bool | operator== (const Sid &) const |
compare two sids More... | |
bool | operator== (PSID) const |
compare two sids More... | |
bool | IsValid () const |
return true if SID is valid More... | |
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
|
inline |
return the type of sid
bool Sid::IsValid | ( | ) | const |
return true if SID is valid
|
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== | ( | const Sid & | sid | ) | const |
compare two sids
bool Sid::operator== | ( | PSID | psid | ) | 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 |