libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
PROCESS_INFORMATION.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
20
21#include <cstdint>
22#include <memory>
23
24namespace introvirt {
25namespace windows {
26namespace kernel32 {
27
29 public:
30 virtual uint64_t hProcess() const = 0;
31 virtual void hProcess(uint64_t hProcess) = 0;
32
33 virtual uint64_t hThread() const = 0;
34 virtual void hThread(uint64_t hThread) = 0;
35
36 virtual uint32_t dwProcessId() const = 0;
37 virtual void dwProcessId(uint32_t dwProcessId) = 0;
38
39 virtual uint32_t dwThreadId() const = 0;
40 virtual void dwThreadId(uint32_t dwThreadId) = 0;
41
42 virtual guest_ptr<void> address() const = 0;
43
44 static std::shared_ptr<PROCESS_INFORMATION> make_shared(const guest_ptr<void>& ptr, bool x64);
45
46 virtual ~PROCESS_INFORMATION() = default;
47};
48
49} // namespace kernel32
50} // namespace windows
51
52namespace inject {
53
54template <>
55class GuestAllocation<windows::kernel32::PROCESS_INFORMATION> final
56 : public GuestAllocationComplexBase<windows::kernel32::PROCESS_INFORMATION> {
57 public:
58 explicit GuestAllocation();
59};
60
61} // namespace inject
62
63} // namespace introvirt
Definition guest_ptr.hh:88
Definition GuestAllocation.hh:179
Definition GuestAllocation.hh:31
Definition PROCESS_INFORMATION.hh:28
static std::shared_ptr< PROCESS_INFORMATION > make_shared(const guest_ptr< void > &ptr, bool x64)
virtual void dwThreadId(uint32_t dwThreadId)=0
virtual guest_ptr< void > address() const =0
virtual void hProcess(uint64_t hProcess)=0
virtual void hThread(uint64_t hThread)=0
virtual void dwProcessId(uint32_t dwProcessId)=0
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20