libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
IMAGE_RESOURCE_DIRECTORY_ENTRY.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
19
20#include <cstdint>
21#include <string>
22
23namespace introvirt {
24namespace windows {
25namespace pe {
26
28 public:
35 virtual bool NameIsString() const = 0;
36
43 virtual const std::string& Name() const = 0;
44
51 virtual uint16_t Id() const = 0;
52
59 virtual bool DataIsDirectory() const = 0;
60
66 virtual const IMAGE_RESOURCE_DIRECTORY* Directory() const = 0;
67
73 virtual const IMAGE_RESOURCE_DATA_ENTRY* Data() const = 0;
74
76};
77
78} // namespace pe
79} // namespace windows
80} // namespace introvirt
Definition IMAGE_RESOURCE_DATA_ENTRY.hh:26
Definition IMAGE_RESOURCE_DIRECTORY_ENTRY.hh:27
virtual bool NameIsString() const =0
Indicates if the value is a string or an ID.
virtual const std::string & Name() const =0
Get the Name if applicable.
virtual ~IMAGE_RESOURCE_DIRECTORY_ENTRY()=default
virtual uint16_t Id() const =0
Get the ID if applicable.
virtual const IMAGE_RESOURCE_DIRECTORY * Directory() const =0
Get the IMAGE_RESOURCE_DIRECTORY if it exists.
virtual const IMAGE_RESOURCE_DATA_ENTRY * Data() const =0
Get the IMAGE_RESOURCE_DATA_ENTRY if it exists.
virtual bool DataIsDirectory() const =0
Indicates if the data held is a directory.
Definition IMAGE_RESOURCE_DIRECTORY.hh:30
Core IntroVirt classes.
Definition Cr0.hh:20