ok, maybre this is an easy one for you out there, but i don't have any clue.

Can someone tell me how to create a assembly program that let "run" a application from within it.
exp:
i want to run, let's say, notepad.exe from a program that i've have (or will) maked.
after leaving notepad, i want to return back to my program...

can someone help me pleeeeeeeeeeeeeeese?
Posted on 2003-09-14 14:52:59 by raidu
thread has been moved so does not appy anymore......
Posted on 2003-09-14 15:08:38 by devilsclaw
Simply ShellExecute, or use CreateProcess if you want to know when application is closed.
Posted on 2003-09-14 15:53:08 by comrade
thanks mate, i will see what i can do with that.
if you have any example to show please feel free to give one, but not to extended please, just a basic is good enough.
Thanks http://www.asmcommunity.net/board/cryptmail.php?tauntspiders=in.your.face@nomail.for.you&id=b301b481fc8d165f0fcffdc81b21f6a5
Posted on 2003-09-16 05:03:56 by raidu
.data

CommandLine db "C:\Windows\Notepad.exe",0
pi PROCESS_INFORMATION <?>
sui STARTUPINFO <?>

.code
invoke CreateProcess, NULL, OFFSET CommandLine, NULL, NULL, \
FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, OFFSET sui, OFFSET pi
invoke CloseHandle,pi.hProcess
invoke CloseHandle,pi.hThread
Posted on 2003-09-16 05:08:37 by donkey
WaitForSingleObject(pi.hProcess) to know when process finishes.
Posted on 2003-09-16 07:19:58 by comrade
Raidu,

You can check this attachment for an example.
Posted on 2003-09-16 12:22:23 by Vortex