lpSecurityAttributes
lpSecurityAttributes is a Windows API pointer type used to supply security and inheritance information to several kernel objects when creating or duplicating handles. It points to a SECURITY_ATTRIBUTES structure that describes details about the object’s security and whether a handle should be inherited by child processes.
The SECURITY_ATTRIBUTES structure contains three fields: nLength, lpSecurityDescriptor, and bInheritHandle. The nLength field must be set
In practical use, a caller fills a SECURITY_ATTRIBUTES structure, assigns its address to an LPSECURITY_ATTRIBUTES, and
lpSecurityAttributes is defined in Windows headers (for example, Winbase.h) as a typedef for SECURITY_ATTRIBUTES* (that is,