about summary refs log tree commit diff stats
path: root/src/include/callback.h
blob: eecbc3d23d0293133aa19ec0b14d62d8c094f56a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __CALLBACK_H__
#define __CALLBACK_H__

#include <stdint.h>

typedef struct x64emu_s x64emu_t;

uint64_t RunFunction(box64context_t *context, uintptr_t fnc, int nargs, ...);
// save all modified register
uint64_t RunSafeFunction(box64context_t *context, uintptr_t fnc, int nargs, ...);
// use emu state to run function
uint64_t RunFunctionWithEmu(x64emu_t *emu, int QuitOnLongJumpExit, uintptr_t fnc, int nargs, ...);
// using the Windows x64 calling convention
uint64_t RunFunctionWindows(box64context_t *context, uintptr_t fnc, int nargs, ...);


#endif //__CALLBACK_H__