libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CM_KEY_NODE.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 <string>
23#include <vector>
24
25namespace introvirt {
26namespace windows {
27namespace nt {
28
30 public:
31 enum Flags {
32 HiveExit = 0x2,
33 HiveEntry = 0x4,
34 NoDelete = 0x8,
36 CompressedName = 0x20, // Indicates the name is ASCII rather than UNICODE
39 VirtTarget = 0x100,
40 VirtualStore = 0x200,
41 };
42
43 virtual const std::string& Name() const = 0;
44 virtual uint16_t Flags() const = 0;
45 virtual const std::vector<std::unique_ptr<CM_KEY_NODE>>& StableSubKeys() const = 0;
46 virtual const std::vector<std::unique_ptr<CM_KEY_NODE>>& VolatileSubKeys() const = 0;
47 virtual const std::vector<std::unique_ptr<CM_KEY_VALUE>>& Values() const = 0;
48
49 virtual guest_ptr<void> ptr() const = 0;
50
51 virtual ~CM_KEY_NODE() = default;
52};
53
54} /* namespace nt */
55} /* namespace windows */
56} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition CM_KEY_NODE.hh:29
virtual const std::vector< std::unique_ptr< CM_KEY_NODE > > & VolatileSubKeys() const =0
virtual guest_ptr< void > ptr() const =0
Flags
Definition CM_KEY_NODE.hh:31
@ PredefinedHandle
Definition CM_KEY_NODE.hh:37
@ VirtTarget
Definition CM_KEY_NODE.hh:39
@ VirtualStore
Definition CM_KEY_NODE.hh:40
@ SymbolicLink
Definition CM_KEY_NODE.hh:35
@ HiveEntry
Definition CM_KEY_NODE.hh:33
@ NoDelete
Definition CM_KEY_NODE.hh:34
@ CompressedName
Definition CM_KEY_NODE.hh:36
@ HiveExit
Definition CM_KEY_NODE.hh:32
@ VirtMirrored
Definition CM_KEY_NODE.hh:38
virtual uint16_t Flags() const =0
virtual const std::vector< std::unique_ptr< CM_KEY_VALUE > > & Values() const =0
virtual const std::string & Name() const =0
virtual const std::vector< std::unique_ptr< CM_KEY_NODE > > & StableSubKeys() const =0
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20