CreateProcess function parameters? 
Author Message
 CreateProcess function parameters?

I want to start a DOS process under W95 that -
*  runs hidden, and
* terminates automatically,
* cleans up after itself, and lastly
* notifies the calling process that it has terminated

At the moment I'm calling Compress.exe (via the ExecCmd function I
found in KB article # Q129796) which -
* runs in a window, and then when it's finished
* hangs waiting for the user to close the window

I suspect the answer lies with the CreatePocess function's arguments,
so can someone tell me what they are exactly, and the repective
possible values together with any associated predefined values.

TIA

- Steve Wilson
(If replying, please cc me an emeail copy - my ISP is having a bad month)



Tue, 07 Mar 2000 03:00:00 GMT  
 CreateProcess function parameters?

Some help :
Create a pif file for the program.
Set it minimized or hidden.
Check the close windows it finished box.

But the notify is the problem.

Quote:

> I want to start a DOS process under W95 that -
> *  runs hidden, and
> * terminates automatically,
> * cleans up after itself, and lastly
> * notifies the calling process that it has terminated

> At the moment I'm calling Compress.exe (via the ExecCmd function I
> found in KB article # Q129796) which -
> * runs in a window, and then when it's finished
> * hangs waiting for the user to close the window

> I suspect the answer lies with the CreatePocess function's arguments,
> so can someone tell me what they are exactly, and the repective
> possible values together with any associated predefined values.

> TIA

> - Steve Wilson
> (If replying, please cc me an emeail copy - my ISP is having a bad
> month)




Tue, 07 Mar 2000 03:00:00 GMT  
 CreateProcess function parameters?

Quote:

>I want to start a DOS process under W95 that -
>*  runs hidden, and
>* terminates automatically,
>* cleans up after itself, and lastly
>* notifies the calling process that it has terminated

Declare Function GetProcessVersion Lib "kernel32" (ByVal Hnd As Long) As Long

Dim hdl&
hdl = Shell("cmd.exe")
While GetProcessVersion(hdl) <> 0
    DoEvents
Wend
MsgBox "Program Closed"



Tue, 07 Mar 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. API CreateProcess Function

2. CreateProcess function doesn't work properly.

3. Problem with CreateProcess function.

4. CreateProcess function doesn't work properly.

5. Calling CreateProcess function

6. Calling CreateProcess function?

7. Function call via string parameter in other function ?

8. change value of function parameters

9. Custom function not working in parameter query

10. Calling Windows API functions with string parameters from Access

11. Array function with parameter based recordset

12. Using string versus variant as function parameters

 

 
Powered by phpBB® Forum Software