Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit 
Author Message
 Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit

How can i notice, if a Dos-Programm like ARJ has finish, when i call it with
Shell (...). Under 16 Bit i can use GETMODULEUSAGE, but  under 32 Bit this
command is deleted. Which other ways can I go?

Please Help me, thank you

Coldy!



Sat, 03 Feb 2001 03:00:00 GMT  
 Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit
You could use the CreateProcessA API Function Call and then check Wait
ForSingleObject to = 0

Richard Tye

Quote:

>How can i notice, if a Dos-Programm like ARJ has finish, when i call it
with
>Shell (...). Under 16 Bit i can use GETMODULEUSAGE, but  under 32 Bit this
>command is deleted. Which other ways can I go?

>Please Help me, thank you

>Coldy!



Sun, 04 Feb 2001 03:00:00 GMT  
 Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit


Fri, 19 Jun 1992 00:00:00 GMT  
 Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit
There must be a asm\c solution by enumerating through all running win
processes/tasks?

I also need a substitute for GetModuleUsage. :-(

Quote:
> -----Original Message-----

> Posted At: Tuesday, August 18, 1998 6:15 PM
> Posted To: winapi
> Conversation:      Getting notice, if a Dos-Programm called by Shell has
> finished under 32 Bit
> Subject:   Getting notice, if a Dos-Programm called by Shell has
> finished under 32 Bit

> How can i notice, if a Dos-Programm like ARJ has finish, when i call
> it with
> Shell (...). Under 16 Bit i can use GETMODULEUSAGE, but  under 32 Bit
> this
> command is deleted. Which other ways can I go?

> Please Help me, thank you

> Coldy!



Sun, 04 Feb 2001 03:00:00 GMT  
 Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit

:There must be a asm\c solution by enumerating through all running win
:processes/tasks?
Yes, but there's a Win32 solution. Use CreateProcess to launch the program,
and use WaitForSingleObject on the hProcess member of the returned
PROCESS_INFORMATION structure.
[...]
--
Damit Senanayake
ICQ#: 6930718
#include <stdio.h>
#include <ctype.h>
void main(){ const char*
s="\x044\x061\x06D\x069\x074\x020\x069\x073\x020\x040\x020\x061\x06C\x074\x0
61\x076\x069\x073\x074\x061\x02E\x06E\x065\x074"; char d[24]; for(int
i=0;i<25;i++) ;{d[i]=toascii(s[i]);} puts(d);}

:



Thu, 08 Feb 2001 03:00:00 GMT  
 Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit


Fri, 19 Jun 1992 00:00:00 GMT  
 Getting notice, if a Dos-Programm called by Shell has finished under 32 Bit
Thanks,

        But I could do this using VB WinAPI and not get dirty hands from
using C, sorry...

        What if the process has been created out of my app's address
space? I found one solution using vb which returns all processes, but
can I do it with one call, this I wouldn't mind getting my hands dirty?
;-)

Quote:
> -----Original Message-----

> Posted At: Sunday, August 23, 1998 3:21 PM
> Posted To: winapi
> Conversation:      Getting notice, if a Dos-Programm called by Shell has
> finished under 32 Bit
> Subject:   Re: ASM must provide an answer



> :There must be a asm\c solution by enumerating through all running win
> :processes/tasks?
> Yes, but there's a Win32 solution. Use CreateProcess to launch the
> program,
> and use WaitForSingleObject on the hProcess member of the returned
> PROCESS_INFORMATION structure.
> [...]
> --
> Damit Senanayake
> ICQ#: 6930718
> #include <stdio.h>
> #include <ctype.h>
> void main(){ const char*
> s="\x044\x061\x06D\x069\x074\x020\x069\x073\x020\x040\x020\x061\x06C\x
> 074\x0
> 61\x076\x069\x073\x074\x061\x02E\x06E\x065\x074"; char d[24]; for(int
> i=0;i<25;i++) ;{d[i]=toascii(s[i]);} puts(d);}

> :



Fri, 09 Feb 2001 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Waiting for a shell process to finish in 32 bit environment

2. HELP: How-to determine if 32-bit shelled app is finished

3. How to create 32-bit DLL in Watcom C and call from 32-bit VB

4. Getting a PID, VB 4.0 32-bit, NT, Shell function

5. Calling a user-written 32-bit dll from 32-bit vb 4.0

6. Calling 32-bit DLL function from 32-bit VB4 app

7. Can I call DOS Interrupts from VB4 (32 bit)

8. Shell and Wait 16 bit apps from 32 bit VB 4.0

9. waiting for a program to finish in VB4 32 bit

10. Waiting for a Process to Finish.(32 Bit)

11. Calling 16 bit DLL's in VB5 ENV(32 bit)

12. calling a 16-bit dll from VB 32-bit

 

 
Powered by phpBB® Forum Software