19 static constexpr std::size_t MAX_SID_SIZE = SECURITY_MAX_SID_SIZE;
23 static Sid well_known(WELL_KNOWN_SID_TYPE type);
25 static Sid builtin_administrators();
27 explicit Sid(
const Buffer& buffer) : m_buffer(buffer) {}
29 explicit operator SID&() {
return get_impl(); }
30 explicit operator const SID&()
const {
return get_impl(); }
32 std::string to_string()
const;
35 Impl& get_impl() {
return *
reinterpret_cast<SID*
>(m_buffer.data()); }
36 const Impl& get_impl()
const {
return *
reinterpret_cast<const SID*
>(m_buffer.data()); }