RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Microsoft::NEFormat::Resource Class Reference

Represents a resource entry. More...

#include <neexe.h>

Inheritance diagram for Microsoft::NEFormat::Resource:
Microsoft::NEFormat::Segment

Public Member Functions

void Dump (Dumper::Dumper &dump, unsigned index, bool isos2) const
 
- Public Member Functions inherited from Microsoft::NEFormat::Segment
 Segment (std::shared_ptr< Linker::Segment > segment, unsigned flags)
 
void AddRelocation (const Relocation &rel)
 
void Dump (Dumper::Dumper &dump, unsigned index, bool isos2) const
 

Public Attributes

uint16_t type_id = 0
 Type identifier, used by both Windows and OS/2.
 
std::string type_id_name
 Type name, used only by Windows.
 
uint16_t id = 0
 Resource dentifier, used by both Windows and OS/2.
 
std::string id_name
 Resource name, used only by Windows.
 
uint16_t handle = 0
 Reserved field, named so in Microsoft documentation.
 
uint16_t usage = 0
 Reserved field, named so in Microsoft documentation.
 
- Public Attributes inherited from Microsoft::NEFormat::Segment
std::shared_ptr< Linker::Imageimage
 
offset_t data_offset = 0
 
offset_t image_size = 0
 Size of segment as stored in the file, only used during reading.
 
flag_type flags = flag_type(0)
 
uint32_t total_size = 0
 Size of segment as stored in memory.
 
uint16_t movable_entry_index = 0
 Entry number for movable segments (field not present in segment table)
 
std::vector< Relocationrelocations
 
std::map< uint16_t, Relocationrelocations_map
 Used internally during output generation.
 

Additional Inherited Members

- Public Types inherited from Microsoft::NEFormat::Segment
enum  flag_type : uint16_t {
  Data = 1 , Code = 0 , Allocated = 2 , Loaded = 4 ,
  Iterated = 8 , Movable = 0x10 , Fixed = 0 , Shareable = 0x20 ,
  Preload = 0x40 , LoadOnCall = 0 , ExecuteOnly = 0x80|Code , ReadOnly = 0x80|Data ,
  Relocations = 0x0100 , DebugInfo = 0x0200 , Discardable = 0x1000
}
 
enum  { PrivilegeLevelShift = 10 }
 

Detailed Description

Represents a resource entry.

For Windows executables, resources have very similar properties to segments, and for OS/2 executables, resources are also segments

Member Data Documentation

◆ id

uint16_t Microsoft::NEFormat::Resource::id = 0

Resource dentifier, used by both Windows and OS/2.

Under Windows, if bit 15 is cleared, it references a string

◆ type_id

uint16_t Microsoft::NEFormat::Resource::type_id = 0

Type identifier, used by both Windows and OS/2.

Under Windows, if bit 15 is cleared, it references a string


The documentation for this class was generated from the following files: