| 486 | } |
| 487 | |
| 488 | FARPROC MappedModule::GetProcAddress(const char* name) const { |
| 489 | |
| 490 | auto exp = _mappedPe.exports().find(name); |
| 491 | |
| 492 | if (exp.type() == Pe::ExportType::unknown) |
| 493 | return nullptr; |
| 494 | |
| 495 | return (FARPROC)exp.address(); |
| 496 | } |
| 497 | |
| 498 | const Pe::PeNative& MappedModule::GetModule() const { |
| 499 | return _mappedPe; |