libintrovirt
v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
WindowsEventTaskInformation.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
#pragma once
17
18
#include <
introvirt/core/event/EventTaskInformation.hh
>
19
#include <
introvirt/windows/kernel/nt/fwd.hh
>
20
21
namespace
introvirt
{
22
namespace
windows {
23
24
class
WindowsEventTaskInformation
final :
public
EventTaskInformation
{
25
public
:
26
uint64_t
pid
()
const override
;
27
28
uint64_t
tid
()
const override
;
29
30
std::string
process_name
()
const override
;
31
39
nt::KPCR
&
pcr
();
40
44
const
nt::KPCR
&
pcr
()
const
;
45
46
WindowsEventTaskInformation
(
nt::KPCR
& kpcr);
47
48
~WindowsEventTaskInformation
();
49
50
private
:
51
nt::KPCR
& kpcr_;
52
};
53
54
}
// namespace windows
55
}
// namespace introvirt
EventTaskInformation.hh
introvirt::EventTaskInformation
An interface for event process information.
Definition
EventTaskInformation.hh:28
introvirt::windows::WindowsEventTaskInformation
Definition
WindowsEventTaskInformation.hh:24
introvirt::windows::WindowsEventTaskInformation::tid
uint64_t tid() const override
introvirt::windows::WindowsEventTaskInformation::process_name
std::string process_name() const override
introvirt::windows::WindowsEventTaskInformation::pcr
const nt::KPCR & pcr() const
Get the Processor Control Region.
introvirt::windows::WindowsEventTaskInformation::WindowsEventTaskInformation
WindowsEventTaskInformation(nt::KPCR &kpcr)
introvirt::windows::WindowsEventTaskInformation::pid
uint64_t pid() const override
introvirt::windows::WindowsEventTaskInformation::~WindowsEventTaskInformation
~WindowsEventTaskInformation()
introvirt::windows::WindowsEventTaskInformation::pcr
nt::KPCR & pcr()
Get the Processor Control Region.
introvirt::windows::nt::KPCR
The KPCR (Kernel Processor Control Region) is used by Windows to hold information about the current t...
Definition
KPCR.hh:32
introvirt
Core IntroVirt classes.
Definition
Cr0.hh:20
fwd.hh