Home > Software engineering > CreateProcessAsUser excuse me why the child process may result in the parent process collapse?
CreateProcessAsUser excuse me why the child process may result in the parent process collapse?
Time:09-20
The question is, consult everybody Process A BOOL execute CreateProcessAsUser call parameters bInheritHandles to true, chose the handle to inherit the parent process, to perform some third-party applications B, can be normal execution,
But tracking found some cases due to the B A execution will collapse, leading to A process in CreateProcessAsUser will collapse, there is no return continue to collapse,
But why the third party programs will lead to the collapse of the parent process also collapse? B program has a problem, CreateProcessAsUse should return failure rather than directly to collapse?
2, call GetProcessHandleCount found a MFC console program didn't do anything actually handle to open the number more than 100, how can so much open handle?