summaryrefslogtreecommitdiffhomepage
path: root/src/exports/pe_get_procedure_address.c
blob: ab110d0490e7275b87959ac8b7a037743f9f3844 (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--2020  SysDeer Technologies, LLC                      */
/*  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;

}