Public Member Functions

AppSecInc::LSA::Sid Class Reference

Security identifier: a data structure of variable length that identifies user, group, and computer accounts. More...

#include <Sid.h>

List of all members.

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
Sidoperator= (const Sid &sid)
 copy a sid
Sidoperator= (PSID psid)
 copy a sid
Sidoperator= (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

Detailed Description

Security identifier: a data structure of variable length that identifies user, group, and computer accounts.


Constructor & Destructor Documentation

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


Member Function Documentation

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

Sid & Sid::operator= ( const Sid sid)

copy 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


The documentation for this class was generated from the following files:


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