Re: Wrapping "CreateProcess"

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_0031_01C19D06.51817DD0
	charset="iso-8859-2"

I have partially wrapped it for Judith's IDE.
Take a look at process.ew in IDE package.

I launch process with this function: CreateProcessHi ()
I check if process
which was launched is still alive with this code:

            if(GetExitCodeProcess(hNewProcess)!=STILL_ACTIVE) then

I have tip for you:
The easiest way to know if someone has already wrapped some function is to
search in your Euphoria programs downloads directory for function name, in your
case "CreateProcess". Ofcourse you have to first download almost all contributed
programs.
My directory with downloaded Euphoria programs is 250 MB large.
  ----- Original Message ----- 
  From: Mark Brown 
  To: EUforum 
  Sent: Monday, January 14, 2002 4:28 AM
  Subject: Wrapping "CreateProcess"



  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_0031_01C19D06.51817DD0
Content-Type: text/html;
	charset="iso-8859-2"
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-2">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2>I have partially wrapped it for 
Judith's IDE.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Take a look at process.ew in IDE 
package.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I launch process with this function: 
CreateProcessHi ()</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I check if process</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>which was launched </FONT><FONT 
face=Arial color=#0000ff size=2>is still alive with this code:</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(GetExitCodeProcess(hNewProcess)!=STILL_ACTIVE) then</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I have tip for you:</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>The easiest way to know if someone 
has already wrapped some function is to search in your Euphoria programs 
downloads directory for function name, in your case "CreateProcess". Ofcourse 
you have to first download almost all contributed programs.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>My directory with downloaded Euphoria
programs&nbsp;is 250 MB large.</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=mabrown at SENET.COM.AU href="mailto:mabrown at SENET.COM.AU">Mark 
  Brown</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=EUforum at topica.com 
  href="mailto:EUforum at topica.com">EUforum</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, January 14, 2002 4:28 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Wrapping "CreateProcess"</DIV>
  <DIV><BR></DIV><PRE>============ The Euphoria Mailing List ============ 
</PRE>
  <DIV><FONT face=Arial size=2>Hi everyone,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>So far, my wrapped function doesn't 
  work.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial
  size=2>Mark</FONT></DIV><PRE>==^================================================================
This email was sent to: tone.skoda at siol.net

EASY UNSUBSCRIBE click here: <A
href="http://topica.com/u/?b1dd66.b2OTWs">http://topica.com/u/?b1dd66.b2OTWs</A>
Or send an email to: EUforum-unsubscribe at topica.com

T O P I C A -- Register now to manage your mail!
<A
href="http://www.topica.com/partner/tag02/register">http://www.topica.com/partner/tag02/register</A>

------=_NextPart_000_0031_01C19D06.51817DD0--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu