Class WinBase.SECURITY_ATTRIBUTES

java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES
Enclosing interface:
WinBase

@FieldOrder({"dwLength","lpSecurityDescriptor","bInheritHandle"}) public static class WinBase.SECURITY_ATTRIBUTES extends Structure
The SECURITY_ATTRIBUTES structure contains the security descriptor for an object and specifies whether the handle retrieved by specifying this structure is inheritable. This structure provides security settings for objects created by various functions, such as Kernel32.CreateFile(String, int, int, WinBase.SECURITY_ATTRIBUTES, int, int, WinNT.HANDLE), Kernel32.CreatePipe(WinNT.HANDLEByReference, WinNT.HANDLEByReference, WinBase.SECURITY_ATTRIBUTES, int), or Advapi32.RegCreateKeyEx(WinReg.HKEY, String, int, String, int, int, WinBase.SECURITY_ATTRIBUTES, WinReg.HKEYByReference, IntByReference).
Author:
dblock[at]dblock.org
  • Field Details

    • dwLength

      public WinDef.DWORD dwLength
      The size of the structure, in bytes.
    • lpSecurityDescriptor

      public Pointer lpSecurityDescriptor
      A pointer to a SECURITY_DESCRIPTOR structure that controls access to the object.
    • bInheritHandle

      public boolean bInheritHandle
      A Boolean value that specifies whether the returned handle is inherited when a new process is created
  • Constructor Details

    • SECURITY_ATTRIBUTES

      public SECURITY_ATTRIBUTES()