Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Close Handles
CloseHandle(pi.hProcess);//Handles must be explicitly closed if not parent process will hold on to it even if child process is terminated.
CloseHandle(pi.hThread);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment