
170
CHAPTER 6 PROCESS MANAGEMENT
processes, and so on. The flag can be regarded as a master switch applying to all
handles.
It is also necessary to make an ind ividua l handle inheritable; i t is not done by
default. To create an inheritable handle, use a
structure
at creation time or duplicate an existing handle.
The
structure has a flag, , that
should be set to
. Also, recall that should be set to
.
The following code segment shows how an inheritable file or other handle is
typically created. In this example, the security descriptor within the security
attributes structure is
Chapter 15 shows how to include a security descriptor.
A child process ...