Introduction
The c++ (cpp) csid example is extracted from the most popular open source projects, you can refer to the following example for usage.
Programming language: C++ (Cpp)
Class/type: CSid
Example#1File:
ATLSecurity.cppProject:
Jinjiego/VCSamples
void DumpSid(CSid& sid)
{
CIndent scope;
Log(_T("Account Name: %s"), sid.AccountName());
Log(_T("Domain: %s"), sid.Domain());
Log(_T("SID: %s"), sid.Sid());
}
Example#2File:
NetShareUtil.cppProject:
abukhtoyarov/attempts
static
void
TraceAceSid(
const CSid &sid
)
{
if(!sid.IsValid())
wprintf(L"sid is not valid\n");
wprintf(L"AccountName: %s, sid: %s\n", sid.AccountName(), sid.Sid());
}