MCPcopy Create free account
hub / github.com/NetSPI/BOF-PE / GetProcAddress

Method GetProcAddress

loader/mappedmodule.cpp:488–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488FARPROC 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
498const Pe::PeNative& MappedModule::GetModule() const {
499 return _mappedPe;

Callers

nothing calls this directly

Calls 4

exportsMethod · 0.80
findMethod · 0.45
typeMethod · 0.45
addressMethod · 0.45

Tested by

no test coverage detected