MCPcopy Create free account
hub / github.com/EasyIME/PIME / sidToStr

Function sidToStr

PIMELauncher/PipeSecurity.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace PIME {
14
15static std::wstring sidToStr(PSID sid) {
16 std::wstring sidStr;
17 LPWSTR buf = nullptr;
18 if (::ConvertSidToStringSidW(sid, &buf)) {
19 sidStr = buf;
20 ::LocalFree(buf);
21 }
22 return sidStr;
23}
24
25
26static std::wstring getLogonSid() {

Callers 2

getLogonSidFunction · 0.85
getProcessOwnerSidsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected