libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtDeviceIoControlFile.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
17/* This file is automatically generated. Do not edit. */
18#pragma once
19
20#include "NtSystemCall.hh"
22
23#include <memory>
24
25namespace introvirt {
26namespace windows {
27namespace nt {
28
33 public:
34 /* Direct parameter getters */
35
41 virtual uint64_t FileHandle() const = 0;
47 virtual uint64_t EventHandle() const = 0;
53 virtual guest_ptr<void> ApcRoutinePtr() const = 0;
59 virtual guest_ptr<void> ApcContextPtr() const = 0;
65 virtual guest_ptr<void> IoStatusBlockPtr() const = 0;
71 virtual uint32_t IoControlCode() const = 0;
77 virtual guest_ptr<void> InputBufferPtr() const = 0;
83 virtual uint32_t InputBufferLength() const = 0;
89 virtual guest_ptr<void> OutputBufferPtr() const = 0;
95 virtual uint32_t OutputBufferLength() const = 0;
96
97 /* Direct parameter setters */
98
104 virtual void FileHandle(uint64_t FileHandle) = 0;
110 virtual void EventHandle(uint64_t EventHandle) = 0;
116 virtual void ApcRoutinePtr(const guest_ptr<void>& pApcRoutine) = 0;
122 virtual void ApcContextPtr(const guest_ptr<void>& pApcContext) = 0;
128 virtual void IoStatusBlockPtr(const guest_ptr<void>& pIoStatusBlock) = 0;
134 virtual void IoControlCode(uint32_t IoControlCode) = 0;
140 virtual void InputBufferPtr(const guest_ptr<void>& pInputBuffer) = 0;
146 virtual void InputBufferLength(uint32_t InputBufferLength) = 0;
152 virtual void OutputBufferPtr(const guest_ptr<void>& pOutputBuffer) = 0;
158 virtual void OutputBufferLength(uint32_t OutputBufferLength) = 0;
159
160 /* Helper methods */
161 virtual const IO_STATUS_BLOCK* IoStatusBlock() const = 0;
163
164 /*
165 * System call injection support. You probably want to use
166 * inject::system_call<NtDeviceIoControlFile>.
167 */
168 static NTSTATUS inject(uint64_t FileHandle, uint64_t EventHandle,
169 const guest_ptr<void>& pApcRoutine, const guest_ptr<void>& pApcContext,
170 const guest_ptr<void>& pIoStatusBlock, uint32_t IoControlCode,
171 const guest_ptr<void>& pInputBuffer, uint32_t InputBufferLength,
172 const guest_ptr<void>& pOutputBuffer, uint32_t OutputBufferLength);
173};
174
175} /* namespace nt */
176} /* namespace windows */
177} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition IO_STATUS_BLOCK.hh:31
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtDeviceIoControlFile system call.
Definition NtDeviceIoControlFile.hh:32
virtual void OutputBufferPtr(const guest_ptr< void > &pOutputBuffer)=0
Setter for OutputBufferPtr.
virtual void ApcRoutinePtr(const guest_ptr< void > &pApcRoutine)=0
Setter for ApcRoutinePtr.
virtual IO_STATUS_BLOCK * IoStatusBlock()=0
virtual uint32_t OutputBufferLength() const =0
Getter for OutputBufferLength.
virtual guest_ptr< void > ApcRoutinePtr() const =0
Getter for ApcRoutinePtr.
virtual void IoStatusBlockPtr(const guest_ptr< void > &pIoStatusBlock)=0
Setter for IoStatusBlockPtr.
virtual void ApcContextPtr(const guest_ptr< void > &pApcContext)=0
Setter for ApcContextPtr.
virtual guest_ptr< void > IoStatusBlockPtr() const =0
Getter for IoStatusBlockPtr.
virtual void EventHandle(uint64_t EventHandle)=0
Setter for EventHandle.
virtual uint32_t IoControlCode() const =0
Getter for IoControlCode.
virtual void InputBufferPtr(const guest_ptr< void > &pInputBuffer)=0
Setter for InputBufferPtr.
virtual uint64_t FileHandle() const =0
Getter for FileHandle.
virtual void InputBufferLength(uint32_t InputBufferLength)=0
Setter for InputBufferLength.
virtual guest_ptr< void > InputBufferPtr() const =0
Getter for InputBufferPtr.
static NTSTATUS inject(uint64_t FileHandle, uint64_t EventHandle, const guest_ptr< void > &pApcRoutine, const guest_ptr< void > &pApcContext, const guest_ptr< void > &pIoStatusBlock, uint32_t IoControlCode, const guest_ptr< void > &pInputBuffer, uint32_t InputBufferLength, const guest_ptr< void > &pOutputBuffer, uint32_t OutputBufferLength)
virtual void OutputBufferLength(uint32_t OutputBufferLength)=0
Setter for OutputBufferLength.
virtual guest_ptr< void > OutputBufferPtr() const =0
Getter for OutputBufferPtr.
virtual uint64_t EventHandle() const =0
Getter for EventHandle.
virtual void IoControlCode(uint32_t IoControlCode)=0
Setter for IoControlCode.
virtual guest_ptr< void > ApcContextPtr() const =0
Getter for ApcContextPtr.
virtual void FileHandle(uint64_t FileHandle)=0
Setter for FileHandle.
virtual const IO_STATUS_BLOCK * IoStatusBlock() const =0
virtual uint32_t InputBufferLength() const =0
Getter for InputBufferLength.
Base type for NT system calls.
Definition NtSystemCall.hh:29
Core IntroVirt classes.
Definition Cr0.hh:20