Exit code of DOS app under NT 4.0 
Author Message
 Exit code of DOS app under NT 4.0

Bob,

 > How can I retrieve the exit code of a MS-DOS application running under
 > Windows NT 4.0?

For all I know, you cannot. Q111559 applies to NT 3.x, but I would
assume it still holds for NT 4.0.

Cheers,
Felix.

----------
If you post a reply, kindly refrain from emailing it, too.



Thu, 14 Oct 1999 03:00:00 GMT  
 Exit code of DOS app under NT 4.0

-----BEGIN PGP SIGNED MESSAGE-----


Quote:
>Bob,

> > How can I retrieve the exit code of a MS-DOS application running under
> > Windows NT 4.0?

>For all I know, you cannot. Q111559 applies to NT 3.x, but I would
>assume it still holds for NT 4.0.

>Cheers,
>Felix.

Thanks for the reply.  The article you referenced states that under NT
3.x, the return from GetExitCodeProcess will always be ZERO for 16-bit
processes, however, I am getting a code of 255!  Evidently, NT 4.0
does not work quite the same as 3.x in this case!

- --Bob
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: cp850
Comment: Processed by PGPClick 3.0

iQCVAwUBM2UxJ5ekfJOFWb8JAQG37QP/T1RxRj0ClcA5IKXxlBpyxLcHaSeIiMQS
MAp9Bc9O55784wbdMAEYqp4GebzzClAsdP0xh5dhAnL/WIx4Ld+5Obb7/k/rTe3o
xYujFpxIULLfa6WO6L66rti/vtCV2uyimxbw3l69eSPuNPPaMQcCGHbnGG8XJO42
D5tp28Pjqs8=
=aXnK
-----END PGP SIGNATURE-----

(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^)
 )   Robert Elden Wilson, M.D., Ph.D.       "Personal Brain   (
(    --------------------------------        Care Specialist"  )

(      FTP: ftp.ncinter.net/home/rewilson                      )
 )     WWW: http://www.ncinter.net/~rewilson/                 (

 ) Address: Saint Vincent Health Center, Erie, PA 16544       (
(______________________________________________________________)



Fri, 15 Oct 1999 03:00:00 GMT  
 Exit code of DOS app under NT 4.0

Quote:

> >Bob,

> > > How can I retrieve the exit code of a MS-DOS application running
under
> > > Windows NT 4.0?

> >For all I know, you cannot. Q111559 applies to NT 3.x, but I would
> >assume it still holds for NT 4.0.

> >Cheers,
> >Felix.

> Thanks for the reply.  The article you referenced states that under NT
> 3.x, the return from GetExitCodeProcess will always be ZERO for 16-bit
> processes, however, I am getting a code of 255!  Evidently, NT 4.0
> does not work quite the same as 3.x in this case!

According to Q105676, the handles returned by CreateProcess with a shared
VDM are meaningless. The only usable handle is the hProcess in conjunction
with the WaitForSingleObject or WaitForInputIdle APIs.

Regards / Bjoern Lundmark



Sun, 17 Oct 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Exit code of DOS app under NT 4.0

2. Exit code of DOS app under NT 4.0

3. App crashes - access violation - NT 4.0/VB 4.0(32 bit)/OLE Automation

4. Migrating 16 bits Win3.1 app to NT 4.0 16 bits app

5. Reading the dos exit code number

6. Exit Code of MS-DOS Application

7. Capturing a DOS exit code

8. How determine Exit-Code of Shelled DOS-Application ?

9. VB app doesn't exit on NT

10. Dirlistbox - DOS filenames NT 4.0?

11. Dirlistbox - DOS filenames NT 4.0?

12. VB 4.0, Win95/NT, 16 bit, DOS

 

 
Powered by phpBB® Forum Software