MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / AsString

Method AsString

WinSysCore/Sid.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29std::wstring Sid::AsString() const {
30 PWSTR str;
31 std::wstring result;
32 if (::ConvertSidToStringSid((PSID)*this, &str)) {
33 result = str;
34 ::LocalFree(str);
35 return result;
36 }
37 return L"";
38}
39
40std::wstring Sid::UserName(PSID_NAME_USE use) const {
41 WCHAR name[64], domain[64];

Callers 3

ServiceInfoEx.cppFile · 0.80
InitTokenMethod · 0.80
EnumGroupsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected