1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#include <stdio.h>
typedef void FNVOID(void) ;
typedef FNVOID *PFNVOID;
FNVOID HK_ReadFile;
#ifdef INLAUNCHER
#define DECLARE_SYSCALL(NAME, ADDR) \
{ L ## #NAME, ADDR, (PFNVOID) 0, (PFNVOID) 0, 0, 0 }
#else
#define DECLARE_SYSCALL(NAME, ADDR) \
{ L ## #NAME, ADDR, (PFNVOID) HK_##NAME, (PFNVOID) 0, 0, 0 }
#endif
int main (void)
{
struct
{
wchar_t const *s;
void *pa;
void *pb;
void *pc;
int a;
int b;
}
s[] =
{
DECLARE_SYSCALL (ReadFile, 0x00000000),
};
return 0;
} |
Partager