Wrapping "CreateProcess"
- Posted by Mark Brown <mabrown at SENET.COM.AU> Jan 13, 2002
- 407 views
This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C19D07.BBAA0BE0 charset="iso-8859-1" Hi everyone, I am trying to wrap the Win32 "CreateProcess" function. I want to launch an application from Eu and get the application's process handle via "CreateProcess". I then want to pass the handle to the Win32 "WaitForInputIdle" function in order to suspend my main process until the child process is ready. So far, my wrapped function doesn't work. Has anyone already wrapped these and used them successfully. Is there another way I can do this? Thanks Mark ------=_NextPart_000_0007_01C19D07.BBAA0BE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 5.50.4207.2601" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi everyone,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I am trying to wrap the Win32 "CreateProcess" function. I want to launch</FONT></DIV> <DIV><FONT face=Arial size=2>an application from Eu and get the application's process handle via </FONT></DIV> <DIV><FONT face=Arial size=2>"CreateProcess". I then want to pass the handle to the Win32</FONT></DIV> <DIV><FONT face=Arial size=2>"WaitForInputIdle" function in order to suspend my main process</FONT></DIV> <DIV><FONT face=Arial size=2>until the child process is ready.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>So far, my wrapped function doesn't work.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Has anyone already wrapped these and used them successfully.</FONT></DIV> <DIV><FONT face=Arial size=2>Is there another way I can do this?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Thanks</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> ------=_NextPart_000_0007_01C19D07.BBAA0BE0--