
Launching 16-Bit apps from 32-Bit app?
Hi,
I have a program, written in Visual Basic 5.0, that launches other
applications. These other applications can be 16-bit or 32-bit. I need
to be able to detect when the launched application has been
exited/shut-down. I have not been able to figure out a way to do this
that works for both 16 and 32-bit apps. I used to use Shell() and
GetModuleUsage() in a 16-bit program, but that doesn't work in my 32-bit
program. I can use CreateProcess() and WaitForSingleObject() in my
32-bit program, but it doesn't seem to work if it is launching a 16-bit
application.
I ran across an article in the Visual Basic Programmer's Journal that
said I could use calls to TOOLHELP.DLL to do this. I cannot find the
Visual Basic Declaration statements for the Functions and Types that I
need. Does anyone know the proper VB syntax for the following
functions?
TaskFirst() <- Function Declaration
TaskNext() <- Function Declaration
TaskEntry <- Type Declaration
Does anyone know of another way to do this?
Please reply via E-Mail because I don't get out to the newsgroups much
these days.
Thanks,
Jason Picker