4 ms·
http://stackoverflow.com/a/67293/3965517 http://stackoverflow.com/a/67293/3965517 indicates that NT does support fork properly, just not exposed to usermode nor
by bpye 11y ago
http://stackoverflow.com/a/67293/3965517 http://stackoverflow.com/a/67293/3965517 indicates that NT does support fork properly, just not exposed to usermode normally.
- pcwalton 11y agofork() is exposed to user mode, but it's an undocumented private API. Pass the handle of the parent process as the 4th parameter and TRUE as the 5th parameter to NtCreateProcess: http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FNT%20Objects%2FProcess%2FNtCreateProcess.html http://undocumented.ntinternals.net/index.html?page=UserMode... The problem is that the Win32 user mode system will fight you every step of the way: CSRSS will not understand what you just did, for example. It's not generally worth it.