[comp.windows.ms] Spawning new applications

rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) (10/04/89)

There was a discussion about the spawnl?() functions and other methods
for spawning new applications. In the winexp.h header from the Windows
SDK 2.1 I have seen a prototype for a LoadModule(LPSTR, LPSTR) call.
When I tried to use it to start a program this seemed to work but the
second parameter seems NOT to be the parameter string ("command line
arguments"). Also, the problems with closing the spawning application
before the spawned one are not solved (-> crash :-).

Does anybody know more about this call ? (second parameter !)

Is this the recommended call to spawn a new application ? (LoadModule
is exported as ordinal 45 from KERNEL.EXE and  MSDOS.EXE imports this
function with a KERNEL.45 link).

Kai Uwe Rommel