libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtLoadKeyEx.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 "NtLoadKey2.hh"
23
24#include <memory>
25
26namespace introvirt {
27namespace windows {
28namespace nt {
29
33class NtLoadKeyEx : public NtLoadKey2 {
34 public:
35 /* Direct parameter getters */
36
42 virtual uint64_t TrustClassKey() const = 0;
48 virtual uint64_t Event() const = 0;
54 virtual KEY_ACCESS_MASK DesiredAccess() const = 0;
60 virtual guest_ptr<void> RootHandlePtr() const = 0;
66 virtual guest_ptr<void> IoStatusPtr() const = 0;
67
68 /* Direct parameter setters */
69
75 virtual void TrustClassKey(uint64_t TrustClassKey) = 0;
81 virtual void Event(uint64_t Event) = 0;
93 virtual void RootHandlePtr(const guest_ptr<void>& pRootHandle) = 0;
99 virtual void IoStatusPtr(const guest_ptr<void>& pIoStatus) = 0;
100
101 /* Helper methods */
102 virtual uint64_t RootHandle() const = 0;
103 virtual void RootHandle(uint64_t RootHandle) = 0;
104 virtual const IO_STATUS_BLOCK* IoStatus() const = 0;
105 virtual IO_STATUS_BLOCK* IoStatus() = 0;
106
107 /*
108 * System call injection support. You probably want to use inject::system_call<NtLoadKeyEx>.
109 */
110 static NTSTATUS inject(const guest_ptr<void>& pDestinationKeyName,
111 const guest_ptr<void>& pHiveFileName, uint32_t Flags,
113 uint64_t* RootHandle, const guest_ptr<void>& pIoStatus);
114};
115
116} /* namespace nt */
117} /* namespace windows */
118} /* namespace introvirt */
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition IO_STATUS_BLOCK.hh:31
ACCESS_MASK class for key permissions.
Definition KEY_ACCESS_MASK.hh:69
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtLoadKey2 system call.
Definition NtLoadKey2.hh:31
virtual uint32_t Flags() const =0
Getter for Flags.
Handler class for the NtLoadKeyEx system call.
Definition NtLoadKeyEx.hh:33
virtual void DesiredAccess(KEY_ACCESS_MASK DesiredAccess)=0
Setter for DesiredAccess.
virtual void TrustClassKey(uint64_t TrustClassKey)=0
Setter for TrustClassKey.
virtual void IoStatusPtr(const guest_ptr< void > &pIoStatus)=0
Setter for IoStatusPtr.
virtual guest_ptr< void > RootHandlePtr() const =0
Getter for RootHandlePtr.
static NTSTATUS inject(const guest_ptr< void > &pDestinationKeyName, const guest_ptr< void > &pHiveFileName, uint32_t Flags, uint64_t TrustClassKey, uint64_t Event, KEY_ACCESS_MASK DesiredAccess, uint64_t *RootHandle, const guest_ptr< void > &pIoStatus)
virtual uint64_t Event() const =0
Getter for Event.
virtual KEY_ACCESS_MASK DesiredAccess() const =0
Getter for DesiredAccess.
virtual void Event(uint64_t Event)=0
Setter for Event.
virtual guest_ptr< void > IoStatusPtr() const =0
Getter for IoStatusPtr.
virtual void RootHandle(uint64_t RootHandle)=0
virtual uint64_t RootHandle() const =0
virtual uint64_t TrustClassKey() const =0
Getter for TrustClassKey.
virtual void RootHandlePtr(const guest_ptr< void > &pRootHandle)=0
Setter for RootHandlePtr.
virtual const IO_STATUS_BLOCK * IoStatus() const =0
virtual IO_STATUS_BLOCK * IoStatus()=0
Core IntroVirt classes.
Definition Cr0.hh:20