libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtTraceControl.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"
21
22#include <memory>
23
24namespace introvirt {
25namespace windows {
26namespace nt {
27
32 public:
33 /* Direct parameter getters */
34
40 virtual uint32_t FunctionCode() const = 0;
46 virtual guest_ptr<void> InBufferPtr() const = 0;
52 virtual uint32_t InBufferLen() const = 0;
58 virtual guest_ptr<void> OutBufferPtr() const = 0;
64 virtual guest_ptr<void> OutBufferLenPtr() const = 0;
70 virtual guest_ptr<void> ReturnSizePtr() const = 0;
71
72 /* Direct parameter setters */
73
79 virtual void FunctionCode(uint32_t FunctionCode) = 0;
85 virtual void InBufferPtr(const guest_ptr<void>& pInBuffer) = 0;
91 virtual void InBufferLen(uint32_t InBufferLen) = 0;
97 virtual void OutBufferPtr(const guest_ptr<void>& pOutBuffer) = 0;
103 virtual void OutBufferLenPtr(const guest_ptr<void>& pOutBufferLen) = 0;
109 virtual void ReturnSizePtr(const guest_ptr<void>& pReturnSize) = 0;
110
111 /* Helper methods */
112 virtual uint32_t ReturnSize() const = 0;
113 virtual void ReturnSize(uint32_t ReturnSize) = 0;
114
115 /*
116 * System call injection support. You probably want to use inject::system_call<NtTraceControl>.
117 */
118 static NTSTATUS inject(uint32_t FunctionCode, const guest_ptr<void>& pInBuffer,
119 uint32_t InBufferLen, const guest_ptr<void>& pOutBuffer,
120 const guest_ptr<void>& pOutBufferLen, const uint32_t& ReturnSize);
121};
122
123} /* namespace nt */
124} /* namespace windows */
125} /* namespace introvirt */
Definition guest_ptr.hh:88
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Base type for NT system calls.
Definition NtSystemCall.hh:29
Handler class for the NtTraceControl system call.
Definition NtTraceControl.hh:31
virtual guest_ptr< void > OutBufferPtr() const =0
Getter for OutBufferPtr.
virtual void OutBufferPtr(const guest_ptr< void > &pOutBuffer)=0
Setter for OutBufferPtr.
virtual uint32_t FunctionCode() const =0
Getter for FunctionCode.
virtual uint32_t InBufferLen() const =0
Getter for InBufferLen.
virtual void InBufferPtr(const guest_ptr< void > &pInBuffer)=0
Setter for InBufferPtr.
virtual uint32_t ReturnSize() const =0
virtual void InBufferLen(uint32_t InBufferLen)=0
Setter for InBufferLen.
virtual guest_ptr< void > InBufferPtr() const =0
Getter for InBufferPtr.
static NTSTATUS inject(uint32_t FunctionCode, const guest_ptr< void > &pInBuffer, uint32_t InBufferLen, const guest_ptr< void > &pOutBuffer, const guest_ptr< void > &pOutBufferLen, const uint32_t &ReturnSize)
virtual void FunctionCode(uint32_t FunctionCode)=0
Setter for FunctionCode.
virtual void ReturnSize(uint32_t ReturnSize)=0
virtual void ReturnSizePtr(const guest_ptr< void > &pReturnSize)=0
Setter for ReturnSizePtr.
virtual guest_ptr< void > OutBufferLenPtr() const =0
Getter for OutBufferLenPtr.
virtual void OutBufferLenPtr(const guest_ptr< void > &pOutBufferLen)=0
Setter for OutBufferLenPtr.
virtual guest_ptr< void > ReturnSizePtr() const =0
Getter for ReturnSizePtr.
Core IntroVirt classes.
Definition Cr0.hh:20