Skip to content

Instantly share code, notes, and snippets.

@peta909
Created January 18, 2019 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peta909/f17c2b28501ea0d10abf59ea4c177e1c to your computer and use it in GitHub Desktop.
Save peta909/f17c2b28501ea0d10abf59ea4c177e1c to your computer and use it in GitHub Desktop.
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