|
ReXGlue SDK
|
#include <rex/kernel/object/module_object.h>
Public Member Functions | |
| virtual const std::string & | GetPath () const =0 |
| virtual X_STATUS | GetSection (std::string_view section_name, u32 *out_section_data, u32 *out_section_size) const =0 |
| virtual u32 | GetTitleID () const =0 |
| virtual std::vector< u32 > | GetAlternateTitleIDs () const =0 |
| virtual X_STATUS | GetOptHeader (XEXHeaderKey key, void **out_ptr)=0 |
| template<typename T> | |
| X_STATUS | OptHeader (XEXHeaderKey key, T *out_ptr) |
| virtual X_STATUS | GetOptHeaderGuestAddress (XEXHeaderKey key, u32 *out_guest_address) const =0 |
What XAM reads from a loaded module.
|
nodiscardpure virtual |
Lists the alternate title IDs of the XEX header of a user module.
Implemented in rex::kernel::ModuleObject.
|
pure virtual |
Finds an optional XEX header. For host use only.
| out_ptr | Receives the header value or a pointer to its data. |
Implemented in rex::kernel::ModuleObject.
|
pure virtual |
Finds an optional XEX header the way RtlImageXexHeaderField does: the value for a key whose low byte is 0, otherwise the guest address of the field.
| key | The header key. |
| out_guest_address | Receives the value or the guest address, 0 when absent. |
Implemented in rex::kernel::ModuleObject.
|
nodiscardpure virtual |
Returns the absolute path of the file a user module was loaded from.
Implemented in rex::kernel::ModuleObject.
|
pure virtual |
Finds a resource section of a module.
| out_section_data | Receives the guest address of the section. |
| out_section_size | Receives the size of the section. |
Implemented in rex::kernel::ModuleObject.
|
nodiscardpure virtual |
Returns the title ID of a user module, 0 when the module is not an XEX or has none.
Implemented in rex::kernel::ModuleObject.
|
inline |
Finds an optional XEX header. For host use only.
| T | The type of the value the header holds. |
| out_ptr | Receives the header value or a pointer to its data. |