LIEF: Library to Instrument Executable Formats Version 0.15.1
|
Representation of the data associated with the RT_VERSION
entry.
More...
#include <ResourceVersion.hpp>
Public Member Functions | |
ResourceVersion (const ResourceVersion &) | |
ResourceVersion & | operator= (const ResourceVersion &) |
~ResourceVersion () override | |
uint16_t | type () const |
The type of data in the version resource. | |
const std::u16string & | key () const |
Signature of the structure: Must be the unicode string "VS_VERSION_INFO". | |
bool | has_fixed_file_info () const |
true if the version contains a ResourceFixedFileInfo | |
bool | has_string_file_info () const |
true if the version contains a ResourceStringFileInfo | |
bool | has_var_file_info () const |
true if the version contains a ResourceVarFileInfo | |
const ResourceFixedFileInfo * | fixed_file_info () const |
Object that describes various information about the application's version. This is an optional information and if it is not present, it returns a nullptr. | |
ResourceFixedFileInfo * | fixed_file_info () |
const ResourceStringFileInfo * | string_file_info () const |
Object that describes various information about the application's version. The underlying structure is basically a dictionary (key/value) | |
ResourceStringFileInfo * | string_file_info () |
const ResourceVarFileInfo * | var_file_info () const |
Object that describes information about languages supported by the application This structure is not always present and if not, it returns a nullptr. | |
ResourceVarFileInfo * | var_file_info () |
void | type (uint16_t type) |
void | key (std::u16string key) |
void | key (const std::string &key) |
void | fixed_file_info (const ResourceFixedFileInfo &fixed_file_info) |
void | remove_fixed_file_info () |
void | string_file_info (const ResourceStringFileInfo &string_file_info) |
void | remove_string_file_info () |
void | var_file_info (const ResourceVarFileInfo &var_file_info) |
void | remove_var_file_info () |
void | accept (Visitor &visitor) const override |
Public Member Functions inherited from LIEF::Object | |
Object () | |
Object (const Object &other) | |
Object & | operator= (const Object &other) |
template<class T > | |
output_t< T > | as () |
template<class T > | |
output_const_t< T > | as () const |
virtual bool | operator== (const Object &other) const |
virtual bool | operator!= (const Object &other) const |
virtual | ~Object () |
Additional Inherited Members | |
Public Types inherited from LIEF::Object | |
template<class T > | |
using | output_t = add_pointer_t<decay_t<T>> |
template<class T > | |
using | output_const_t = add_pointer_t<add_const_t<decay_t<T>>> |
Representation of the data associated with the RT_VERSION
entry.
See: VS_VERSIONINFO
- https://docs.microsoft.com/en-us/windows/win32/menurc/vs-versioninfo
LIEF::PE::ResourceVersion::ResourceVersion | ( | const ResourceVersion & | ) |
|
override |
|
overridevirtual |
Implements LIEF::Object.
ResourceFixedFileInfo * LIEF::PE::ResourceVersion::fixed_file_info | ( | ) |
const ResourceFixedFileInfo * LIEF::PE::ResourceVersion::fixed_file_info | ( | ) | const |
Object that describes various information about the application's version. This is an optional information and if it is not present, it returns a nullptr.
void LIEF::PE::ResourceVersion::fixed_file_info | ( | const ResourceFixedFileInfo & | fixed_file_info | ) |
bool LIEF::PE::ResourceVersion::has_fixed_file_info | ( | ) | const |
true
if the version contains a ResourceFixedFileInfo
bool LIEF::PE::ResourceVersion::has_string_file_info | ( | ) | const |
true
if the version contains a ResourceStringFileInfo
bool LIEF::PE::ResourceVersion::has_var_file_info | ( | ) | const |
true
if the version contains a ResourceVarFileInfo
const std::u16string & LIEF::PE::ResourceVersion::key | ( | ) | const |
Signature of the structure: Must be the unicode string "VS_VERSION_INFO".
void LIEF::PE::ResourceVersion::key | ( | const std::string & | key | ) |
|
inline |
ResourceVersion & LIEF::PE::ResourceVersion::operator= | ( | const ResourceVersion & | ) |
void LIEF::PE::ResourceVersion::remove_fixed_file_info | ( | ) |
void LIEF::PE::ResourceVersion::remove_string_file_info | ( | ) |
void LIEF::PE::ResourceVersion::remove_var_file_info | ( | ) |
ResourceStringFileInfo * LIEF::PE::ResourceVersion::string_file_info | ( | ) |
const ResourceStringFileInfo * LIEF::PE::ResourceVersion::string_file_info | ( | ) | const |
Object that describes various information about the application's version. The underlying structure is basically a dictionary (key/value)
This structure is not always present and if not, it returns a nullptr
void LIEF::PE::ResourceVersion::string_file_info | ( | const ResourceStringFileInfo & | string_file_info | ) |
uint16_t LIEF::PE::ResourceVersion::type | ( | ) | const |
The type of data in the version resource.
1
if it contains text data0
if it contains binary data void LIEF::PE::ResourceVersion::type | ( | uint16_t | type | ) |
ResourceVarFileInfo * LIEF::PE::ResourceVersion::var_file_info | ( | ) |
const ResourceVarFileInfo * LIEF::PE::ResourceVersion::var_file_info | ( | ) | const |
Object that describes information about languages supported by the application This structure is not always present and if not, it returns a nullptr.
void LIEF::PE::ResourceVersion::var_file_info | ( | const ResourceVarFileInfo & | var_file_info | ) |