源代码如下:
运行后会打开无数的程序副本进程,如果直接运行副本,能正确运行,就是用原程序通过WinExec运行副本就会出错,请高手指点一下?
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
include advapi32.inc
includelib user32.lib
includelib kernel32.lib
includelib advapi32.lib
include shell32.inc
includelib shell32.lib
.data
szStr1 db "原程序执行完毕",0
szStr2 db "程序副本执行完毕",0
szFileName db "MyTest2010.exe",0
szCurPath db MAX_PATH dup (?)
szSysPath db MAX_PATH dup (?)
.code
_main proc