| 4 | |
| 5 | namespace 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 | } |
no outgoing calls
no test coverage detected