libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtQueryMultipleValueKey.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 KeyHandle() const = 0;
46 virtual guest_ptr<void> ValueEntriesPtr() const = 0;
52 virtual uint32_t EntryCount() const = 0;
58 virtual guest_ptr<void> ValueBufferPtr() const = 0;
64 virtual guest_ptr<void> BufferLengthPtr() const = 0;
71
72 /* Direct parameter setters */
73
79 virtual void KeyHandle(uint64_t KeyHandle) = 0;
85 virtual void ValueEntriesPtr(const guest_ptr<void>& pValueEntries) = 0;
91 virtual void EntryCount(uint32_t EntryCount) = 0;
97 virtual void ValueBufferPtr(const guest_ptr<void>& pValueBuffer) = 0;
103 virtual void BufferLengthPtr(const guest_ptr<void>& pBufferLength) = 0;
109 virtual void RequiredBufferLengthPtr(const guest_ptr<void>& pRequiredBufferLength) = 0;
110
111 /* Helper methods */
112 virtual uint32_t BufferLength() const = 0;
113 virtual void BufferLength(uint32_t BufferLength) = 0;
114 virtual uint32_t RequiredBufferLength() const = 0;
115 virtual void RequiredBufferLength(uint32_t RequiredBufferLength) = 0;
116
117 /*
118 * System call injection support. You probably want to use
119 * inject::system_call<NtQueryMultipleValueKey>.
120 */
121 static NTSTATUS inject(uint64_t KeyHandle, const guest_ptr<void>& pValueEntries,
122 uint32_t EntryCount, const guest_ptr<void>& pValueBuffer,
123 uint32_t& BufferLength, uint32_t* RequiredBufferLength);
124};
125
126} /* namespace nt */
127} /* namespace windows */
128} /* namespace introvirt */
Definition guest_ptr.hh:88
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtQueryMultipleValueKey system call.
Definition NtQueryMultipleValueKey.hh:31
virtual guest_ptr< void > ValueEntriesPtr() const =0
Getter for ValueEntriesPtr.
virtual void RequiredBufferLengthPtr(const guest_ptr< void > &pRequiredBufferLength)=0
Setter for RequiredBufferLengthPtr.
virtual void KeyHandle(uint64_t KeyHandle)=0
Setter for KeyHandle.
virtual guest_ptr< void > ValueBufferPtr() const =0
Getter for ValueBufferPtr.
virtual void ValueEntriesPtr(const guest_ptr< void > &pValueEntries)=0
Setter for ValueEntriesPtr.
static NTSTATUS inject(uint64_t KeyHandle, const guest_ptr< void > &pValueEntries, uint32_t EntryCount, const guest_ptr< void > &pValueBuffer, uint32_t &BufferLength, uint32_t *RequiredBufferLength)
virtual uint64_t KeyHandle() const =0
Getter for KeyHandle.
virtual void BufferLength(uint32_t BufferLength)=0
virtual uint32_t RequiredBufferLength() const =0
virtual guest_ptr< void > RequiredBufferLengthPtr() const =0
Getter for RequiredBufferLengthPtr.
virtual void EntryCount(uint32_t EntryCount)=0
Setter for EntryCount.
virtual guest_ptr< void > BufferLengthPtr() const =0
Getter for BufferLengthPtr.
virtual void ValueBufferPtr(const guest_ptr< void > &pValueBuffer)=0
Setter for ValueBufferPtr.
virtual uint32_t EntryCount() const =0
Getter for EntryCount.
virtual void BufferLengthPtr(const guest_ptr< void > &pBufferLength)=0
Setter for BufferLengthPtr.
virtual void RequiredBufferLength(uint32_t RequiredBufferLength)=0
Base type for NT system calls.
Definition NtSystemCall.hh:29
Core IntroVirt classes.
Definition Cr0.hh:20