求助下。。。 有能学到点东西的感觉。。。
下面本来是想调用system函数的,
我想知道哪里出问题了。。。 编译后打开程序会崩溃。
#include <iostream>;using namespace std;int main(int argc,char* argv){/*00251042 |. E8 59100000 CA <&MSVCR90.system>*/char param[] = "shutdown -s -t -0";char temp[]={0xE8, 0x59, 0x10, 0x00, 0x00};__asm{lea edx, parampush edxlea eax,temppush eaxret}return 0;}