home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1723 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.6 KB

  1. Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!daavid
  2. From: daavid@bohra.cpg.oz.au (Daavid Turnbull)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: WinExec return useful?
  5. Message-ID: <1992Sep8.111436.10411@bohra.cpg.oz.au>
  6. Date: 8 Sep 92 11:14:36 GMT
  7. References: <dobbins.271.715550243@lan.ccit.arizona.edu>
  8. Distribution: usa,world
  9. Organization: Computer Power Software
  10. Lines: 26
  11.  
  12. In article <dobbins.271.715550243@lan.ccit.arizona.edu> dobbins@lan.ccit.arizona.edu (Gary Dobbins) writes:
  13. > When an app calls WinExec, the return value is described somewhat vaguely
  14. > in the SDK as a task handle, which I presume is an instance handle. (?)
  15. This might be the case for a windows program but it is certainly not the
  16. case when WinExec()ing a vanilla dos app, ie a .pif file.  Because WinExec()
  17. is essentially a fork there is little that WinExec() can return apart from
  18. an instance handle and in the case of a vanilla dos app all it really can
  19. return is success or failure to start the app.
  20.  
  21. A problem that I am currently trying to solve (I have been successfully
  22. putting it off so far), is how to obtain information about the exit code
  23. of a dos app.  I know that I can set up the dos app to write a file etc.
  24. but I would much rather not have to resort to suc a messy solution.  The
  25. real problem is that the exit code of the app becomes part of the 
  26. enviroment which In my case is essentially lost when the app terminates.
  27.  
  28. Any suggestions ? 
  29.  
  30. Thanks in advance, daavid
  31.  
  32.  
  33. -- 
  34.     Daavid Turnbull
  35.     daavid@bohra.cpg.oz   +61 3 823 0222    (fax) +61 3 824 8068
  36.     uunet!munnari!bohra.cpg.oz!daavid
  37.     CP Software Export Pty Ltd                   ACN 006 640 133
  38.