libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtCreateEvent.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 guest_ptr<void> EventHandlePtr() const = 0;
49 virtual EVENT_ACCESS_MASK DesiredAccess() const = 0;
61 virtual EVENT_TYPE EventType() const = 0;
67 virtual bool InitialState() const = 0;
68
69 /* Direct parameter setters */
70
76 virtual void EventHandlePtr(const guest_ptr<void>& pEventHandle) = 0;
88 virtual void ObjectAttributesPtr(const guest_ptr<void>& pObjectAttributes) = 0;
94 virtual void EventType(EVENT_TYPE EventType) = 0;
100 virtual void InitialState(bool InitialState) = 0;
101
102 /* Helper methods */
103 virtual uint64_t EventHandle() const = 0;
104 virtual void EventHandle(uint64_t EventHandle) = 0;
105 virtual const OBJECT_ATTRIBUTES* ObjectAttributes() const = 0;
107
108 /*
109 * System call injection support. You probably want to use inject::system_call<NtCreateEvent>.
110 */
112 const guest_ptr<void>& pObjectAttributes, EVENT_TYPE EventType,
113 bool InitialState);
114};
115
116} /* namespace nt */
117} /* namespace windows */
118} /* namespace introvirt */
Definition guest_ptr.hh:88
ACCESS_MASK class for event permissions.
Definition EVENT_ACCESS_MASK.hh:44
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtCreateEvent system call.
Definition NtCreateEvent.hh:34
virtual void EventHandle(uint64_t EventHandle)=0
virtual void InitialState(bool InitialState)=0
Setter for InitialState.
virtual const OBJECT_ATTRIBUTES * ObjectAttributes() const =0
virtual EVENT_TYPE EventType() const =0
Getter for EventType.
virtual guest_ptr< void > EventHandlePtr() const =0
Getter for EventHandlePtr.
virtual void EventHandlePtr(const guest_ptr< void > &pEventHandle)=0
Setter for EventHandlePtr.
virtual EVENT_ACCESS_MASK DesiredAccess() const =0
Getter for DesiredAccess.
virtual void ObjectAttributesPtr(const guest_ptr< void > &pObjectAttributes)=0
Setter for ObjectAttributesPtr.
static NTSTATUS inject(uint64_t &EventHandle, EVENT_ACCESS_MASK DesiredAccess, const guest_ptr< void > &pObjectAttributes, EVENT_TYPE EventType, bool InitialState)
virtual void DesiredAccess(EVENT_ACCESS_MASK DesiredAccess)=0
Setter for DesiredAccess.
virtual uint64_t EventHandle() const =0
virtual OBJECT_ATTRIBUTES * ObjectAttributes()=0
virtual void EventType(EVENT_TYPE EventType)=0
Setter for EventType.
virtual guest_ptr< void > ObjectAttributesPtr() const =0
Getter for ObjectAttributesPtr.
virtual bool InitialState() const =0
Getter for InitialState.
Base type for NT system calls.
Definition NtSystemCall.hh:29
Definition OBJECT_ATTRIBUTES.hh:38
EVENT_TYPE
Definition EVENT_TYPE.hh:24
Core IntroVirt classes.
Definition Cr0.hh:20
EventType
Enum describing a hypervisor event.
Definition EventType.hh:29