libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtWriteVirtualMemory.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 uint64_t ProcessHandle() const = 0;
46 virtual guest_ptr<void> BaseAddressPtr() const = 0;
52 virtual guest_ptr<void> BufferPtr() const = 0;
58 virtual uint32_t BufferSize() const = 0;
64 virtual guest_ptr<void> ResultLengthPtr() const = 0;
65
66 /* Direct parameter setters */
67
73 virtual void ProcessHandle(uint64_t ProcessHandle) = 0;
79 virtual void BaseAddressPtr(const guest_ptr<void>& pBaseAddress) = 0;
85 virtual void BufferPtr(const guest_ptr<void>& pBuffer) = 0;
91 virtual void BufferSize(uint32_t BufferSize) = 0;
97 virtual void ResultLengthPtr(const guest_ptr<void>& pResultLength) = 0;
98
99 /* Helper methods */
100 virtual uint32_t ResultLength() const = 0;
101 virtual void ResultLength(uint32_t ResultLength) = 0;
102
103 /*
104 * System call injection support. You probably want to use
105 * inject::system_call<NtWriteVirtualMemory>.
106 */
107 static NTSTATUS inject(uint64_t ProcessHandle, const guest_ptr<void>& pBaseAddress,
108 const guest_ptr<void>& pBuffer, uint32_t BufferSize,
109 uint32_t* ResultLength);
110};
111
112} /* namespace nt */
113} /* namespace windows */
114} /* 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 NtWriteVirtualMemory system call.
Definition NtWriteVirtualMemory.hh:31
virtual uint64_t ProcessHandle() const =0
Getter for ProcessHandle.
virtual guest_ptr< void > BaseAddressPtr() const =0
Getter for BaseAddressPtr.
virtual void ResultLength(uint32_t ResultLength)=0
virtual void ResultLengthPtr(const guest_ptr< void > &pResultLength)=0
Setter for ResultLengthPtr.
static NTSTATUS inject(uint64_t ProcessHandle, const guest_ptr< void > &pBaseAddress, const guest_ptr< void > &pBuffer, uint32_t BufferSize, uint32_t *ResultLength)
virtual uint32_t BufferSize() const =0
Getter for BufferSize.
virtual guest_ptr< void > BufferPtr() const =0
Getter for BufferPtr.
virtual uint32_t ResultLength() const =0
virtual void BaseAddressPtr(const guest_ptr< void > &pBaseAddress)=0
Setter for BaseAddressPtr.
virtual guest_ptr< void > ResultLengthPtr() const =0
Getter for ResultLengthPtr.
virtual void ProcessHandle(uint64_t ProcessHandle)=0
Setter for ProcessHandle.
virtual void BufferSize(uint32_t BufferSize)=0
Setter for BufferSize.
virtual void BufferPtr(const guest_ptr< void > &pBuffer)=0
Setter for BufferPtr.
Core IntroVirt classes.
Definition Cr0.hh:20