
172
CHAPTER 6 PROCESS MANAGEMENT
Process Identities
A process can obtain the id entity and handle of a new child process from the
structure. Closing the child handle does not, of course,
destroy the child process; it destroys only the pa rent’s access to the child. A pair of
functions is used to obtain current process identification.
actually returns a pseudohandle and is not inheritable.
This value can be used whenever a process needs its own handle. You create a real
process handle from a process ID, including the one returned by
, by using the function. As is the case with all sharable
objects, the open call will fail if you do not have suff ...