I am trying to pass a parameter from program A to program B.

Program A
xyz db "1000",0
open db "open",0
invoke ShellExecute,0,ADDR open,ADDR B,ADDR xyz,NULL,SW_ShowNormal
The path of program B is defined

Program B
xyz db "0000",0
open db "open",0
LOCAL sei:ShellExecuteInfo
invoke ShellExecuteEx,ADDR sei

The parameter doesn't get passed
Have defined the ShellExecuteInfo struct in Program B

Any help would be appreciated.
Posted on 2003-02-16 17:00:47 by shankle
have you tried GetCommandLine?
Posted on 2003-02-16 17:08:53 by BubbaFate

For any program you call using ShellExecuteEx or WinExec or CreateProcess you must pass the command line you want it to get when it starts.

With the program you are calling, it must be capable of processing a command line to extract what it wants. If you are writing both yourself, have a look at the command line handling procedures in MASM32, they will pick out the bits you want for multiple items in a command line.


Posted on 2003-02-17 01:03:27 by hutch--