blob: 68ac8b3d2e61c5bce8fd5bcdb745468c60e1132c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*****************************************************************************/
/* pemagination: a (virtual) tour into portable bits and executable bytes */
/* Copyright (C) 2013--2017 Z. Gilboa */
/* Released under GPLv2 and GPLv3; see COPYING.PEMAGINE. */
/*****************************************************************************/
#include <pemagine/pemagine.h>
void * pe_get_procedure_address(const void * base, const char * name)
{
struct pe_export_sym sym;
return pe_get_export_symbol_info(base,name,&sym)
? 0 : sym.addr;
}
|