22 lines
775 B
C
22 lines
775 B
C
#ifndef EXPORT
|
|
#define EXPORT
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include "stdfuncs.h"
|
|
#include "pe.h"
|
|
//#include <winsock.h>
|
|
#if defined(__amd64__)
|
|
typedef void *(*llib)(char *asciiName, uint64_t x, uint64_t y)__attribute__((ms_abi));
|
|
typedef void *(*gpa)(void *dll, char *procName)__attribute__((ms_abi));
|
|
#else
|
|
typedef void *(*llib)(char *asciiName, uint64_t x, uint64_t y)__attribute__((stdcall));
|
|
typedef void *(*gpa)(void *dll, char *procName)__attribute__((stdcall));
|
|
#endif
|
|
|
|
IMAGE_EXPORT_DIRECTORY *get_loaded_export_hdr(void *image);
|
|
void *get_loaded_export_function_by_name(void *image, char *name);
|
|
void *get_function_from_lib_by_kernelMZ(void *kernelMZ, char *libName,
|
|
char *funcName)__attribute__((sysv_abi));
|
|
#endif
|