C++中这些代码不太懂啊,帮我看看!
_declspec(dllimport) int add(int a,int b);
HINSTANCE hInst;
hInst=LoadLibrary("Dll.dll");
typedef int (*ADDPROC)(int a,int b);//这句实在看不懂!
ADDPROC Add=(ADDPROC)GetProcAddress(hInst,"add");
Add(5,3);
还有
char shellcode[] ="……“;
int (*pfunc)();
pfunc=(int(*)())shellcode;
(int)(*pfunc)();
为什么上面的代码执行后就能执行shellcode数组中的代码??
麻烦大家帮我解释一下…………