libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
FILE_IO_COMPLETION_INFORMATION.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
19#include <introvirt/util/json/json.hh>
21
22#include <memory>
23
24namespace introvirt {
25namespace windows {
26namespace nt {
27
29 public:
30 virtual uint64_t KeyContextPtr() const = 0;
31 virtual void KeyContextPtr(uint64_t value) = 0;
32
33 virtual uint64_t ApcContextPtr() const = 0;
34 virtual void ApcContextPtr(uint64_t value) = 0;
35
36 virtual const IO_STATUS_BLOCK* IoStatusBlock() const = 0;
38
39 virtual guest_ptr<void> ptr() const = 0;
40
41 virtual void write(std::ostream& os, const std::string& linePrefix = "") const = 0;
42 virtual Json::Value json() const = 0;
43
44 static std::unique_ptr<FILE_IO_COMPLETION_INFORMATION> make_unique(const NtKernel& kernel,
45 const guest_ptr<void>& ptr);
46
48};
49
50} // namespace nt
51} // namespace windows
52} // namespace introvirt
Definition guest_ptr.hh:88
Definition FILE_IO_COMPLETION_INFORMATION.hh:28
virtual guest_ptr< void > ptr() const =0
static std::unique_ptr< FILE_IO_COMPLETION_INFORMATION > make_unique(const NtKernel &kernel, const guest_ptr< void > &ptr)
virtual void write(std::ostream &os, const std::string &linePrefix="") const =0
virtual const IO_STATUS_BLOCK * IoStatusBlock() const =0
Definition IO_STATUS_BLOCK.hh:31
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