libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
ServiceDescriptorTable.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 "ServiceTable.hh"
19#include "fwd.hh"
20
22
23namespace introvirt {
24namespace windows {
25
26class ServiceDescriptorTableEntry;
27
34 public:
42 virtual const ServiceDescriptorTableEntry& entry(unsigned int index) const = 0;
43
49 virtual unsigned int count() const = 0;
50
58 static std::unique_ptr<ServiceDescriptorTable> create(const nt::NtKernel& kernel,
59 const guest_ptr<void>& ptr);
60
64 virtual ~ServiceDescriptorTable() = default;
65};
66
71 public:
77 virtual const ServiceTable& service_table() const = 0;
78
82 virtual ~ServiceDescriptorTableEntry() = default;
83};
84
85} // namespace windows
86} // namespace introvirt
Definition guest_ptr.hh:88
An entry in the ServiceDescriptorTable.
Definition ServiceDescriptorTable.hh:70
virtual ~ServiceDescriptorTableEntry()=default
Destroy the instance.
virtual const ServiceTable & service_table() const =0
Get the ServiceTable this entry points to.
Windows Service Descriptor Table.
Definition ServiceDescriptorTable.hh:33
virtual unsigned int count() const =0
Get the number of entries in the table.
virtual ~ServiceDescriptorTable()=default
Destroy the instance.
static std::unique_ptr< ServiceDescriptorTable > create(const nt::NtKernel &kernel, const guest_ptr< void > &ptr)
Create a new ServiceDescriptorTable instance.
virtual const ServiceDescriptorTableEntry & entry(unsigned int index) const =0
Get the service descriptor table entry at the given index.
A Windows ServiceTable.
Definition ServiceTable.hh:28
Abstraction for the Windows NT kernel.
Definition NtKernel.hh:37
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20