(This is a discussion and not a real issue.)
I have experienced a similar situation to what you describe in your tests. CreateProcessW fails with ERROR_NO_SYSTEM_RESOURCES when used with EXTENDED_STARTUPINFO_PRESENT and an attempt is made to restrict the inherited handles. The problem appears only on Win7 OS as in your tests.
I am wondering if you have any further insights or if you ever found a good workaround for the problem. The obvious solution would be to call CreateProcessW and pass bInheritHandles==TRUE, but I was hoping to avoid this.
Many thanks for your attention.
(This is a discussion and not a real issue.)
I have experienced a similar situation to what you describe in your tests.
CreateProcessWfails withERROR_NO_SYSTEM_RESOURCESwhen used withEXTENDED_STARTUPINFO_PRESENTand an attempt is made to restrict the inherited handles. The problem appears only on Win7 OS as in your tests.I am wondering if you have any further insights or if you ever found a good workaround for the problem. The obvious solution would be to call
CreateProcessWand passbInheritHandles==TRUE, but I was hoping to avoid this.Many thanks for your attention.