libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CM_KEY_CONTROL_BLOCK.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
20
21#include <cstdint>
22#include <memory>
23#include <string>
24
25namespace introvirt {
26namespace windows {
27namespace nt {
28
30 public:
31 class KeyFlags {
32 public:
33 bool KEY_IS_VOLATILE() const;
34 bool KEY_HIVE_EXIT() const;
35 bool KEY_HIVE_ENTRY() const;
36 bool KEY_NO_DELETE() const;
37 bool KEY_SYM_LINK() const;
38 bool KEY_COMP_NAME() const;
39 bool KEY_PREDEF_HANDLE() const;
40 bool KEY_VIRT_MIRRORED() const;
41 bool KEY_VIRT_TARGET() const;
42 bool KEY_VIRTUAL_STORE() const;
43 uint16_t value() const { return value_; }
44
45 std::string string(const std::string& separator) const;
46
47 KeyFlags(uint16_t value = 0) : value_(value) {}
48
49 private:
50 uint16_t value_;
51 };
52
54 public:
55 bool CM_KCB_NO_SUBKEY() const;
56 bool CM_KCB_SUBKEY_ONE() const;
57 bool CM_KCB_SUBKEY_HINT() const;
63 uint16_t value() const { return value_; }
64
65 std::string string(const std::string& separator) const;
66
67 KeyExtFlags(uint16_t value = 0) : value_(value) {}
68
69 private:
70 uint16_t value_;
71 };
72
73 public:
77 virtual const CM_KEY_CONTROL_BLOCK* ParentKcb() const = 0;
78
82 virtual const std::string& Name() const = 0;
83
87 virtual const HIVE* KeyHive() const = 0;
88
92 virtual const CM_KEY_CONTROL_BLOCK::KeyFlags Flags() const = 0;
93
98
104 virtual const guest_ptr<void>& ptr() const = 0;
105
106 virtual ~CM_KEY_CONTROL_BLOCK() = default;
107};
108
109} /* namespace nt */
110} /* namespace windows */
111} /* namespace introvirt */
Definition guest_ptr.hh:88
KeyExtFlags(uint16_t value=0)
Definition CM_KEY_CONTROL_BLOCK.hh:67
uint16_t value() const
Definition CM_KEY_CONTROL_BLOCK.hh:63
std::string string(const std::string &separator) const
Definition CM_KEY_CONTROL_BLOCK.hh:31
uint16_t value() const
Definition CM_KEY_CONTROL_BLOCK.hh:43
std::string string(const std::string &separator) const
KeyFlags(uint16_t value=0)
Definition CM_KEY_CONTROL_BLOCK.hh:47
Definition CM_KEY_CONTROL_BLOCK.hh:29
virtual const CM_KEY_CONTROL_BLOCK * ParentKcb() const =0
virtual const CM_KEY_CONTROL_BLOCK::KeyExtFlags ExtFlags() const =0
virtual const HIVE * KeyHive() const =0
virtual const CM_KEY_CONTROL_BLOCK::KeyFlags Flags() const =0
virtual const guest_ptr< void > & ptr() const =0
Get a guest pointer to this structure.
virtual const std::string & Name() const =0
Definition HIVE.hh:31
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20