On Wed Jun 21 12:09:39 2023 +0000, eric pouech wrote:
yes for moving it into the parent! but I wonder if this shouldn't rather be done in kernelbase (instead of ntdll)
- adding also the creation of the ad hoc console handles when requested
from CreateProces flags, and simply having ntdll pass the console handle around (this would also get rid of the pseudo consoles CONSOLE_ALLOC*)
- this would look more symmetrical (everything in kernelbase) and ntdll
transparent to it (except for unix console inheritance of course)
We don't know if the child will be CUI until its executable is mapped and that's done in ntdll.