# SECURITY_ATTRIBUTES Type

    Type SECURITY_ATTRIBUTES
      nLength As Long
      lpSecurityDescriptor As Long
      bInheritHandle As Boolean
    End Type

SECURITY_ATTRIBUTES-type variables define the level and type of security protection to give an object. Security information is only used in Windows NT, so the information in this data type will usually be ignored by Windows 95, Windows 98, or other non-NT versions of Windows.

nLength
  The size in bytes of the variable.
lpSecurityDescriptor
  Identifies a security descriptor. A value of 0 gives the default.
bInheritHandle
  Specifies whether the object's new handle should be inherited by new processes.

Used by: RegCreateKeyEx
Back to the index.