libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
SID.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include <introvirt/core/fwd.hh>
21
22#include <introvirt/util/json/json.hh>
23
24#include <cstdint>
25#include <ostream>
26#include <string>
27
28namespace introvirt {
29namespace windows {
30namespace nt {
31
35class SID {
36 public:
37 virtual uint8_t Revision() const = 0;
40
41 virtual Json::Value json() const = 0;
42
43 virtual void Revision(uint8_t Revision) = 0;
46
47 virtual uint8_t SubAuthorityCount() const = 0;
48 virtual void SubAuthorityCount(uint8_t SubAuthorityCount) = 0;
49
50 virtual ~SID() = default;
51};
52
56std::string to_string(const SID& sid);
57
61std::ostream& operator<<(std::ostream&, const SID& sid);
62
63} /* namespace nt */
64} /* namespace windows */
65} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition SID.hh:35
virtual guest_ptr< const uint32_t[]> SubAuthorities() const =0
virtual guest_ptr< uint8_t[]> IdentifierAuthority()=0
virtual uint8_t Revision() const =0
virtual Json::Value json() const =0
virtual uint8_t SubAuthorityCount() const =0
virtual void SubAuthorityCount(uint8_t SubAuthorityCount)=0
virtual guest_ptr< const uint8_t[]> IdentifierAuthority() const =0
virtual guest_ptr< uint32_t[]> SubAuthorities()=0
virtual void Revision(uint8_t Revision)=0
virtual ~SID()=default
Type-safe guest virtual address pointer and guest_ptr template.
std::ostream & operator<<(std::ostream &, APPHELPCACHESERVICECLASS val)
const std::string & to_string(APPHELPCACHESERVICECLASS val)
Core IntroVirt classes.
Definition Cr0.hh:20