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

Class Sid

WinSysCore/Sid.h:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5namespace WinSys {
6 class Sid final {
7 public:
8 Sid();
9 explicit Sid(PSID sid);
10 explicit Sid(const wchar_t* fromString);
11
12 operator PSID() const;
13
14 bool IsValid() const;
15
16 std::wstring AsString() const;
17 std::wstring UserName(PSID_NAME_USE use = nullptr) const;
18 private:
19 BYTE _buffer[SECURITY_MAX_SID_SIZE]{};
20 };
21}

Callers 2

GetUserNameAndSidMethod · 0.85
GetServiceSidMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected