LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
LoadConfigurationV7.hpp
1/* Copyright 2017 - 2024 R. Thomas
2 * Copyright 2017 - 2024 Quarkslab
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#ifndef LIEF_PE_LOAD_CONFIGURATION_V7_H
17#define LIEF_PE_LOAD_CONFIGURATION_V7_H
18#include <ostream>
19
20#include "LIEF/visibility.h"
21
22#include "LIEF/PE/LoadConfigurations/LoadConfigurationV6.hpp"
23
24namespace LIEF {
25namespace PE {
26
27namespace details {
28template<class T>
30}
31
33 public:
34
35 static constexpr VERSION WIN_VERSION = VERSION::WIN_10_0_16237;
36 LoadConfigurationV7() = default;
37
38 template<class T>
40
41 LoadConfigurationV7& operator=(const LoadConfigurationV7&) = default;
43
44 VERSION version() const override {
45 return WIN_VERSION;
46 }
47
48 uint32_t reserved3() const {
49 return reserved3_;
50 }
51 uint64_t addressof_unicode_string() const {
52 return addressof_unicode_string_;
53 }
54
55 void reserved3(uint32_t value) {
56 reserved3_ = value;
57 }
58 void addressof_unicode_string(uint64_t value) {
59 addressof_unicode_string_ = value;
60 }
61
62 static bool classof(const LoadConfiguration* config) {
63 return config->version() == WIN_VERSION;
64 }
65
66 ~LoadConfigurationV7() override = default;
67
68 void accept(Visitor& visitor) const override;
69
70 std::ostream& print(std::ostream& os) const override;
71
72 protected:
73 uint32_t reserved3_ = 0;
74 uint64_t addressof_unicode_string_ = 0;
75};
76}
77}
78
79#endif
Load Configuration enhanced with Hotpatch and improved RFG.
Definition LoadConfigurationV6.hpp:33
Definition LoadConfigurationV7.hpp:32
VERSION version() const override
(SDK) Version of the structure
Definition LoadConfigurationV7.hpp:44
LIEF namespace.
Definition Abstract/Binary.hpp:32
Definition LoadConfigurationV7.hpp:29