libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
MEMORY_SECTION_NAME.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 "MEMORY_INFORMATION.hh"
19
21
22#include <string>
23
24namespace introvirt {
25namespace windows {
26namespace nt {
27
32 public:
33 virtual const std::string& SectionFileName() const = 0;
34 virtual void SectionFileName(const std::string& value) = 0;
35
36 static std::unique_ptr<MEMORY_SECTION_NAME>
37 make_unique(const NtKernel& kernel, const guest_ptr<void>& ptr, uint32_t buffer_size);
38};
39
40} // namespace nt
41} // namespace windows
42
43namespace inject {
44
45template <>
46class GuestAllocation<windows::nt::MEMORY_SECTION_NAME> final
47 : public GuestAllocationComplexBase<windows::nt::MEMORY_SECTION_NAME> {
48 public:
50};
51
52} // namespace inject
53} // namespace introvirt
Definition guest_ptr.hh:88
Definition GuestAllocation.hh:179
Definition GuestAllocation.hh:31
An abstract class reprseneting a more specific memory information buffer.
Definition MEMORY_INFORMATION.hh:36
virtual uint32_t buffer_size() const =0
Get the size of the buffer.
virtual guest_ptr< void > ptr() const =0
Get the address that the buffer is at.
Definition MEMORY_SECTION_NAME.hh:31
virtual const std::string & SectionFileName() const =0
virtual void SectionFileName(const std::string &value)=0
static std::unique_ptr< MEMORY_SECTION_NAME > make_unique(const NtKernel &kernel, const guest_ptr< void > &ptr, uint32_t buffer_size)
Abstraction for the Windows NT kernel.
Definition NtKernel.hh:37
Core IntroVirt classes.
Definition Cr0.hh:20