libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
IO_STATUS_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
18#include <introvirt/core/fwd.hh>
21#include <introvirt/util/json/json.hh>
23
24#include <cstdint>
25#include <memory>
26
27namespace introvirt {
28namespace windows {
29namespace nt {
30
32 public:
38 virtual uint64_t Status() const = 0;
44 virtual uint64_t Pointer() const = 0;
45
49 virtual uint64_t Information() const = 0;
50
57 virtual void Status(uint64_t Status) = 0;
58
65 virtual void Pointer(uint64_t Pointer) = 0;
66
72 virtual void Information(uint64_t Information) = 0;
73
77 virtual guest_ptr<void> ptr() const = 0;
78
79 virtual void write(std::ostream& os, const std::string& linePrefix = "") const = 0;
80 virtual Json::Value json() const = 0;
81
82 static std::unique_ptr<IO_STATUS_BLOCK> make_unique(const NtKernel& kernel,
83 const guest_ptr<void>& ptr);
84
85 virtual ~IO_STATUS_BLOCK() = default;
86};
87
88} /* namespace nt */
89} /* namespace windows */
90
91namespace inject {
92template <>
93class GuestAllocation<windows::nt::IO_STATUS_BLOCK> final
94 : public GuestAllocationComplexBase<windows::nt::IO_STATUS_BLOCK> {
95 public:
97};
98} /* namespace inject */
99
100} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition GuestAllocation.hh:179
Definition GuestAllocation.hh:31
Definition IO_STATUS_BLOCK.hh:31
virtual uint64_t Pointer() const =0
static std::unique_ptr< IO_STATUS_BLOCK > make_unique(const NtKernel &kernel, const guest_ptr< void > &ptr)
virtual guest_ptr< void > ptr() const =0
virtual Json::Value json() const =0
virtual void write(std::ostream &os, const std::string &linePrefix="") const =0
virtual uint64_t Information() const =0
virtual void Information(uint64_t Information)=0
virtual void Pointer(uint64_t Pointer)=0
virtual void Status(uint64_t Status)=0
virtual uint64_t Status() const =0
Abstraction for the Windows NT kernel.
Definition NtKernel.hh:37
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20