libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtSetValueKey.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"
24
25#include <memory>
26
27namespace introvirt {
28namespace windows {
29namespace nt {
30
35 public:
36 /* Direct parameter getters */
37
43 virtual uint64_t KeyHandle() const = 0;
49 virtual guest_ptr<void> ValueNamePtr() const = 0;
55 virtual uint32_t TitleIndex() const = 0;
61 virtual REG_TYPE Type() const = 0;
67 virtual guest_ptr<void> DataPtr() const = 0;
73 virtual uint32_t DataSize() const = 0;
74
75 /* Direct parameter setters */
76
82 virtual void KeyHandle(uint64_t KeyHandle) = 0;
88 virtual void ValueNamePtr(const guest_ptr<void>& pValueName) = 0;
94 virtual void TitleIndex(uint32_t TitleIndex) = 0;
100 virtual void Type(REG_TYPE Type) = 0;
106 virtual void DataPtr(const guest_ptr<void>& pData) = 0;
112 virtual void DataSize(uint32_t DataSize) = 0;
113
114 /* Helper methods */
115 virtual const UNICODE_STRING* ValueName() const = 0;
116 virtual UNICODE_STRING* ValueName() = 0;
117 virtual const KEY_VALUE* Data() const = 0;
118 virtual KEY_VALUE* Data() = 0;
119
120 /*
121 * System call injection support. You probably want to use inject::system_call<NtSetValueKey>.
122 */
123 static NTSTATUS inject(uint64_t KeyHandle, const UNICODE_STRING& ValueName, uint32_t TitleIndex,
124 REG_TYPE Type, const KEY_VALUE& Data, uint32_t DataSize);
125};
126
127} /* namespace nt */
128} /* namespace windows */
129} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition KEY_VALUE.hh:33
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtSetValueKey system call.
Definition NtSetValueKey.hh:34
virtual uint32_t TitleIndex() const =0
Getter for TitleIndex.
virtual void DataPtr(const guest_ptr< void > &pData)=0
Setter for DataPtr.
virtual uint64_t KeyHandle() const =0
Getter for KeyHandle.
virtual void ValueNamePtr(const guest_ptr< void > &pValueName)=0
Setter for ValueNamePtr.
virtual uint32_t DataSize() const =0
Getter for DataSize.
virtual REG_TYPE Type() const =0
Getter for Type.
virtual guest_ptr< void > DataPtr() const =0
Getter for DataPtr.
virtual void KeyHandle(uint64_t KeyHandle)=0
Setter for KeyHandle.
virtual void Type(REG_TYPE Type)=0
Setter for Type.
virtual guest_ptr< void > ValueNamePtr() const =0
Getter for ValueNamePtr.
virtual const UNICODE_STRING * ValueName() const =0
virtual void TitleIndex(uint32_t TitleIndex)=0
Setter for TitleIndex.
virtual UNICODE_STRING * ValueName()=0
static NTSTATUS inject(uint64_t KeyHandle, const UNICODE_STRING &ValueName, uint32_t TitleIndex, REG_TYPE Type, const KEY_VALUE &Data, uint32_t DataSize)
virtual const KEY_VALUE * Data() const =0
virtual void DataSize(uint32_t DataSize)=0
Setter for DataSize.
Base type for NT system calls.
Definition NtSystemCall.hh:29
Class for the Windows UNICODE_STRING structure.
Definition UNICODE_STRING.hh:37
REG_TYPE
Definition REG_TYPE.hh:25
Core IntroVirt classes.
Definition Cr0.hh:20