This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: A real fork() on NT
- From: Christopher January <ccj00 at doc dot ic dot ac dot uk>
- To: cygwin at cygwin dot com
- Date: Wed, 30 Jan 2002 11:03:00 +0000
- Subject: Re: A real fork() on NT
- References: <006e01c1a96a$f60429a0$aace0544@CX535256D>
> When looking at XP's CreateProcessW (or rather, CreateProcessInternalW) I
> noticed something strange about the way it creates a process. It seems
> that NT is sort of capable of a fork() command. The function
> NtCreateProcess appears to create a "blank" process, into which you can put
> anything you want. After NtCreateProcess, kernel32 maps the EXE into that
> new process's memory space, creates a thread, and finally calls
> NtResumeThread to start its execution.
>
> If this long, nasty, scattered function could be reverse engineered, it
> should be possible to create a true fork() for NT, instead of doing the
> normal cygwin "hack" method.
Coincidentally, I was looking into a similar thing myself. Windows NT has a
POSIX subsystem that's capable of doing fork()'s so it is obviously possible.
Have you any ideas of the arguments passed to the function or what it returns?
Chris
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/