LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LoadConfigurationV9.hpp
Go to the documentation of this file.
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_V9_H
17#define LIEF_PE_LOAD_CONFIGURATION_V9_H
18#include <ostream>
19#include "LIEF/visibility.h"
20
22
23namespace LIEF {
24namespace PE {
25
26namespace details {
27template<class T>
29}
30
32 public:
33
34 static constexpr VERSION WIN_VERSION = VERSION::WIN_10_0_19534;
36
37 template<class T>
38 LIEF_LOCAL LoadConfigurationV9(const details::load_configuration_v9<T>& header);
39
40 LoadConfigurationV9& operator=(const LoadConfigurationV9&) = default;
41 LoadConfigurationV9(const LoadConfigurationV9&) = default;
42
43 VERSION version() const override {
44 return WIN_VERSION;
45 }
46
47 uint64_t guard_eh_continuation_table() const {
48 return guard_eh_continuation_table_;
49 }
50
51 uint64_t guard_eh_continuation_count() const {
52 return guard_eh_continuation_count_;
53 }
54
55 void guard_eh_continuation_table(uint64_t value) {
56 guard_eh_continuation_table_ = value;
57 }
58
59 void guard_eh_continuation_count(uint64_t value) {
60 guard_eh_continuation_count_ = value;
61 }
62
63 static bool classof(const LoadConfiguration* config) {
64 return config->version() == WIN_VERSION;
65 }
66
67 ~LoadConfigurationV9() override = default;
68
69 void accept(Visitor& visitor) const override;
70
71
72 std::ostream& print(std::ostream& os) const override;
73
74 protected:
75 uint64_t guard_eh_continuation_table_ = 0;
76 uint64_t guard_eh_continuation_count_ = 0;
77};
78}
79}
80
81#endif
Definition LoadConfigurationV8.hpp:33
Definition LoadConfigurationV9.hpp:31
VERSION version() const override
(SDK) Version of the structure
Definition LoadConfigurationV9.hpp:43
~LoadConfigurationV9() override=default
uint64_t guard_eh_continuation_table() const
Definition LoadConfigurationV9.hpp:47
void guard_eh_continuation_table(uint64_t value)
Definition LoadConfigurationV9.hpp:55
LoadConfigurationV9(const LoadConfigurationV9 &)=default
void accept(Visitor &visitor) const override
LoadConfigurationV9(const details::load_configuration_v9< T > &header)
LoadConfigurationV9 & operator=(const LoadConfigurationV9 &)=default
void guard_eh_continuation_count(uint64_t value)
Definition LoadConfigurationV9.hpp:59
uint64_t guard_eh_continuation_count() const
Definition LoadConfigurationV9.hpp:51
std::ostream & print(std::ostream &os) const override
static bool classof(const LoadConfiguration *config)
Definition LoadConfigurationV9.hpp:63
virtual VERSION version() const
(SDK) Version of the structure
Definition LoadConfiguration.hpp:64
Definition CodeIntegrity.hpp:26
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
Definition LoadConfigurationV9.hpp:28
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42