TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Noon
from: Jeff Garzik
date: 1994-07-17 17:41:04
subject: Can`t wait for session!

In a message dated 07-14-94, David Noon said to Jeff Garzik:
DN>Aha! A DOS program! You are correct that you must use
DN>DosStartSession() to kick off a DOS program from an OS/2 program.
DN>Just remember to set the SSF_RELATED_CHILD flag in the STARTDATA
DN>structure. Apart from that, I cannot see any reason why you should
DN>not be able to synchronize on the PID for the called program.

Dave,

Strangely enough, this is not the case.  I asked this same question on
CompuServe, and was told that waiting for the pid will _not_ work.

You must make use of the 'TermQ' setting in the STARTDATA structure
passed to DosStartSession() in order to find out when your DOS child
process has ended.

Thanks for you help, though!

Jeff
___
 * MR/2 2.03 NR * Get OS/2 2.0 - the best Windows tip around!

--- Maximus/2 2.01wb

* Origin: Atlanta's OS/2 User's Group BBS/FAX - 404-471-1549 (1:133/308)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 133/308 2001 2 370/510 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.