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 <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef int (_cdecl *UHU)();
int plus2(int a, int b)
{
return a+b;
}
typedef struct _stack
{
int a;
int b;
} STACK;
int main(int argc, char**argv)
{
UHU puhu;
STACK stack;
int result;
puhu = plus2;
stack.a = 55;
stack.b = 6;
result = (puhu)(stack);
printf("Result: %i\n", result);
return 0;
}
???
jetzt muss du dir noch on-runtime einen stack bauen; das könnte aber gehen!