Using CreateProcess opens two handles (one for a thread, one for a process) which are stored by Windows in the PROCESS_INFORMATION structure that you supplied with CreateProcess.
You should close both if the child process exits while your program is still running - but it also seems you can close them any time before this without causing your child process to exit. (Obviously then you can't communicate with the child). I'd want to do this if I'd started a process so that the user could interact with it.
Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.
Quick
- ($a, $b....) = unpack("A2A7...", $packed)
- push( array, list )
Monday, October 24, 2011
Followers
Blog Archive
-
▼
2011
(80)
-
▼
October
(19)
- Perl mkdir, make_path and mkpath
- Perl and large integers
- readdir
- Combo box dropdown failure
- CreateProcess
- Pointers to member functions
- Perl system and synchronicity
- AAD and AAM
- Endianness
- Astronomy sky diagrams and photos often have a lit...
- Giving up smoking
- Constructors, temporary objects and initialisation
- new and constructors
- Choice of language
- argv and argc
- C++ static member functions
- do while is not a loop
- C++ structs
- mingw maximum file name length
-
▼
October
(19)