Daniel Berger
2008-Mar-27 11:47 UTC
[Win32utils-devel] Fwd: CreateProcess function prototype
Hm, I think he''s write about params 3 and 4. Do we have to resort to the address for the ENV data structure? I can''t remember now. Regards, Dan ---------- Forwarded message ---------- From: Steve Shreeve <steve.shreeve at gmail.com> Date: Thu, Mar 27, 2008 at 4:03 AM Subject: CreateProcess function prototype To: Daniel Berger <djberg96 at gmail.com> Dan, Also, the function prototype for CreateProcess on line 65 of windows\process.rb is incorrect. It should be: API.new(''CreateProcess'', ''PPPPLLLPPP'', ''B'') And, it might even be better to be: API.new(''CreateProcess'', ''PPPPLLPPPP'', ''B'') Thanks, Steve
Park Heesob
2008-Mar-27 12:31 UTC
[Win32utils-devel] Fwd: CreateProcess function prototype
Hi, ----- Original Message ----- From: "Daniel Berger" <djberg96 at gmail.com> To: "win32utils-devel" <win32utils-devel at rubyforge.org> Sent: Thursday, March 27, 2008 8:47 PM Subject: [Win32utils-devel] Fwd: CreateProcess function prototype> Hm, I think he''s write about params 3 and 4. Do we have to resort to > the address for the ENV data structure? I can''t remember now. >I remember ENV is not just a pointer but a pointer of pointer. So it should be an address. Regards, Park Heesob
Berger, Daniel
2008-Mar-27 14:16 UTC
[Win32utils-devel] Fwd: CreateProcess function prototype
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Park Heesob > Sent: Thursday, March 27, 2008 6:32 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Fwd: CreateProcess function prototype > > Hi, > ----- Original Message ----- > From: "Daniel Berger" <djberg96 at gmail.com> > To: "win32utils-devel" <win32utils-devel at rubyforge.org> > Sent: Thursday, March 27, 2008 8:47 PM > Subject: [Win32utils-devel] Fwd: CreateProcess function prototype > > > > Hm, I think he''s write about params 3 and 4. Do we have to resort to > > the address for the ENV data structure? I can''t remember now. > > > I remember ENV is not just a pointer but a pointer of pointer. > So it should be an address.Yes, that''s right. It looks like I never caught the mistake in params 3 and 4 because I mistyped the hash keys in the Process.create method with regards to process_inherit and thread_inherit, so they were never actually being used. There were a couple of mistakes there, actually. Anyway, I''ll fix win32-process and windows-pr tonight. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.