diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 00:36:59 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 00:39:55 +0200 |
| commit | 190ff781eaee33e7a61aab44fc4133718cc0515b (patch) | |
| tree | 469cedfc87734589a4e9a0102f69324b9edb8f16 /src/sid.hpp | |
| parent | cmake: upgrade minimum version (diff) | |
| download | privilege-check-190ff781eaee33e7a61aab44fc4133718cc0515b.tar.gz privilege-check-190ff781eaee33e7a61aab44fc4133718cc0515b.zip | |
add .clang-format
Diffstat (limited to 'src/sid.hpp')
| -rw-r--r-- | src/sid.hpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/sid.hpp b/src/sid.hpp index 2dc6111..a890e48 100644 --- a/src/sid.hpp +++ b/src/sid.hpp @@ -5,8 +5,10 @@ #pragma once +/* clang-format off */ #include <windows.h> #include <sddl.h> +/* clang-format on */ #include <array> #include <string> @@ -15,11 +17,12 @@ constexpr DWORD max_sid_size = SECURITY_MAX_SID_SIZE; typedef std::array<unsigned char, max_sid_size> SidBuffer; -namespace sid -{ - SidBuffer well_known(WELL_KNOWN_SID_TYPE type); +namespace sid { - SidBuffer builtin_administrators(); +SidBuffer well_known(WELL_KNOWN_SID_TYPE type); - std::wstring to_string(const SidBuffer&); -} +SidBuffer builtin_administrators(); + +std::wstring to_string(const SidBuffer&); + +} // namespace sid |
