LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
LoadConfigurationV8.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_V8_H
17#define LIEF_PE_LOAD_CONFIGURATION_V8_H
18#include <ostream>
19
20#include "LIEF/visibility.h"
21
22#include "LIEF/PE/enums.hpp"
24
25namespace LIEF {
26namespace PE {
27
28namespace details {
29template<class T>
31}
32
34 public:
35
36 static constexpr VERSION WIN_VERSION = VERSION::WIN_10_0_18362;
38
39 template<class T>
40 LIEF_LOCAL LoadConfigurationV8(const details::load_configuration_v8<T>& header);
41
42 LoadConfigurationV8& operator=(const LoadConfigurationV8&) = default;
43 LoadConfigurationV8(const LoadConfigurationV8&) = default;
44
45 VERSION version() const override {
46 return WIN_VERSION;
47 }
48
49 uint64_t volatile_metadata_pointer() const {
50 return volatile_metadata_pointer_;
51 }
52
53 void volatile_metadata_pointer(uint64_t value) {
54 volatile_metadata_pointer_ = value;
55 }
56
57 static bool classof(const LoadConfiguration* config) {
58 return config->version() == WIN_VERSION;
59 }
60
61 ~LoadConfigurationV8() override = default;
62
63 void accept(Visitor& visitor) const override;
64
65 std::ostream& print(std::ostream& os) const override;
66
67 protected:
68 uint64_t volatile_metadata_pointer_ = 0;
69};
70}
71}
72
73#endif
Definition LoadConfigurationV7.hpp:32
Definition LoadConfigurationV8.hpp:33
static bool classof(const LoadConfiguration *config)
Definition LoadConfigurationV8.hpp:57
void volatile_metadata_pointer(uint64_t value)
Definition LoadConfigurationV8.hpp:53
LoadConfigurationV8(const LoadConfigurationV8 &)=default
void accept(Visitor &visitor) const override
std::ostream & print(std::ostream &os) const override
LoadConfigurationV8(const details::load_configuration_v8< T > &header)
VERSION version() const override
(SDK) Version of the structure
Definition LoadConfigurationV8.hpp:45
LoadConfigurationV8 & operator=(const LoadConfigurationV8 &)=default
~LoadConfigurationV8() override=default
uint64_t volatile_metadata_pointer() const
Definition LoadConfigurationV8.hpp:49
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 LoadConfigurationV8.hpp:30
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42