So according to https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx I need to close the process and thread handles in the PROCESS_INFORMATION structure, when I'm done using them. But what about if I need them for the entire time that the created process is running? When the created process finishes running (such as clicking on the X button on the main window of the created process to close the program), doesn't a program that finishes running and closes down automatically close its own handles?
↧