summaryrefslogtreecommitdiffhomepage
path: root/src/exports/pe_get_procedure_address.c
blob: 12245b4900e48b4fa9d625e53a784f097778ada3 (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,2014,2015  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;

}