libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtCreateThreadEx.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 "NtCreateThreadBase.hh"
23
24#include <memory>
25
26namespace introvirt {
27namespace windows {
28namespace nt {
29
34 public:
35 /* Direct parameter getters */
36
42 virtual guest_ptr<void> StartRoutinePtr() const = 0;
48 virtual guest_ptr<void> ArgumentPtr() const = 0;
54 virtual ThreadCreateFlags CreateFlags() const = 0;
60 virtual guest_ptr<void> ZeroBitsPtr() const = 0;
66 virtual uint64_t StackSize() const = 0;
72 virtual uint64_t MaximumStackSize() const = 0;
78 virtual guest_ptr<void> AttributeListPtr() const = 0;
79
80 /* Direct parameter setters */
81
87 virtual void StartRoutinePtr(const guest_ptr<void>& pStartRoutine) = 0;
93 virtual void ArgumentPtr(const guest_ptr<void>& pArgument) = 0;
105 virtual void ZeroBitsPtr(const guest_ptr<void>& pZeroBits) = 0;
111 virtual void StackSize(uint64_t StackSize) = 0;
117 virtual void MaximumStackSize(uint64_t MaximumStackSize) = 0;
123 virtual void AttributeListPtr(const guest_ptr<void>& pAttributeList) = 0;
124
125 /* Helper methods */
126 virtual uint32_t ZeroBits() const = 0;
127 virtual void ZeroBits(uint32_t ZeroBits) = 0;
128 virtual const PS_ATTRIBUTE_LIST* AttributeList() const = 0;
130
131 /*
132 * System call injection support. You probably want to use
133 * inject::system_call<NtCreateThreadEx>.
134 */
136 const guest_ptr<void>& pObjectAttributes, uint64_t ProcessHandle,
137 const guest_ptr<void>& pStartRoutine, const guest_ptr<void>& pArgument,
138 ThreadCreateFlags CreateFlags, const uint32_t& ZeroBits,
139 uint64_t StackSize, uint64_t MaximumStackSize,
140 const guest_ptr<void>& pAttributeList);
141};
142
143} /* namespace nt */
144} /* namespace windows */
145} /* namespace introvirt */
Definition guest_ptr.hh:88
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtCreateThreadBase system call.
Definition NtCreateThreadBase.hh:35
virtual uint64_t ThreadHandle() const =0
virtual uint64_t ProcessHandle() const =0
Getter for ProcessHandle.
virtual THREAD_ACCESS_MASK DesiredAccess() const =0
Getter for DesiredAccess.
Handler class for the NtCreateThreadEx system call.
Definition NtCreateThreadEx.hh:33
virtual guest_ptr< void > StartRoutinePtr() const =0
Getter for StartRoutinePtr.
virtual void CreateFlags(ThreadCreateFlags CreateFlags)=0
Setter for CreateFlags.
virtual guest_ptr< void > ZeroBitsPtr() const =0
Getter for ZeroBitsPtr.
virtual void ZeroBitsPtr(const guest_ptr< void > &pZeroBits)=0
Setter for ZeroBitsPtr.
virtual guest_ptr< void > ArgumentPtr() const =0
Getter for ArgumentPtr.
static NTSTATUS inject(uint64_t &ThreadHandle, THREAD_ACCESS_MASK DesiredAccess, const guest_ptr< void > &pObjectAttributes, uint64_t ProcessHandle, const guest_ptr< void > &pStartRoutine, const guest_ptr< void > &pArgument, ThreadCreateFlags CreateFlags, const uint32_t &ZeroBits, uint64_t StackSize, uint64_t MaximumStackSize, const guest_ptr< void > &pAttributeList)
virtual void AttributeListPtr(const guest_ptr< void > &pAttributeList)=0
Setter for AttributeListPtr.
virtual uint64_t StackSize() const =0
Getter for StackSize.
virtual void StackSize(uint64_t StackSize)=0
Setter for StackSize.
virtual uint64_t MaximumStackSize() const =0
Getter for MaximumStackSize.
virtual ThreadCreateFlags CreateFlags() const =0
Getter for CreateFlags.
virtual guest_ptr< void > AttributeListPtr() const =0
Getter for AttributeListPtr.
virtual uint32_t ZeroBits() const =0
virtual void ZeroBits(uint32_t ZeroBits)=0
virtual void StartRoutinePtr(const guest_ptr< void > &pStartRoutine)=0
Setter for StartRoutinePtr.
virtual const PS_ATTRIBUTE_LIST * AttributeList() const =0
virtual void MaximumStackSize(uint64_t MaximumStackSize)=0
Setter for MaximumStackSize.
virtual PS_ATTRIBUTE_LIST * AttributeList()=0
virtual void ArgumentPtr(const guest_ptr< void > &pArgument)=0
Setter for ArgumentPtr.
Definition PS_ATTRIBUTE_LIST.hh:116
ACCESS_MASK class for thread permissions.
Definition THREAD_ACCESS_MASK.hh:67
Definition ThreadCreateFlags.hh:34
Core IntroVirt classes.
Definition Cr0.hh:20