public class SECURITY_ATTRIBUTES
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
CreateFile, CreatePipe, CreateProcess,
RegCreateKeyEx, or RegSaveKeyEx.
nLength – the size, in bytes, of this structure. Set this value to SIZEOF.lpSecurityDescriptor –
a pointer to a SECURITY_DESCRIPTOR structure that controls access to the object. If the value of this member is NULL, the object is assigned
the default security descriptor associated with the access token of the calling process. This is not the same as granting access to everyone by
assigning a NULL discretionary access control list (DACL). By default, the default DACL in the access token of a process allows access only to the
user represented by the access token.bInheritHandle – specifies whether the returned handle is inherited when a new process is created. If this member is TRUE, the new process inherits the handle.
struct SECURITY_ATTRIBUTES {
DWORD nLength;
LPVOID lpSecurityDescriptor;
BOOL bInheritHandle;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SECURITY_ATTRIBUTES.Buffer
An array of
SECURITY_ATTRIBUTES structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINHERITHANDLE
The struct member offsets.
|
static int |
LPSECURITYDESCRIPTOR
The struct member offsets.
|
static int |
NLENGTH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
SECURITY_ATTRIBUTES(java.nio.ByteBuffer container)
Creates a
SECURITY_ATTRIBUTES instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bInheritHandle()
Returns the value of the
bInheritHandle field. |
SECURITY_ATTRIBUTES |
bInheritHandle(boolean value)
Sets the specified value to the
bInheritHandle field. |
static SECURITY_ATTRIBUTES |
calloc()
Returns a new
SECURITY_ATTRIBUTES instance allocated with memCalloc. |
static SECURITY_ATTRIBUTES.Buffer |
calloc(int capacity)
Returns a new
SECURITY_ATTRIBUTES.Buffer instance allocated with memCalloc. |
static SECURITY_ATTRIBUTES |
callocStack()
Returns a new
SECURITY_ATTRIBUTES instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SECURITY_ATTRIBUTES.Buffer |
callocStack(int capacity)
Returns a new
SECURITY_ATTRIBUTES.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SECURITY_ATTRIBUTES.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SECURITY_ATTRIBUTES.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SECURITY_ATTRIBUTES |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SECURITY_ATTRIBUTES instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SECURITY_ATTRIBUTES |
create()
Returns a new
SECURITY_ATTRIBUTES instance allocated with BufferUtils. |
static SECURITY_ATTRIBUTES.Buffer |
create(int capacity)
Returns a new
SECURITY_ATTRIBUTES.Buffer instance allocated with BufferUtils. |
static SECURITY_ATTRIBUTES |
create(long address)
Returns a new
SECURITY_ATTRIBUTES instance for the specified memory address. |
static SECURITY_ATTRIBUTES.Buffer |
create(long address,
int capacity)
Create a
SECURITY_ATTRIBUTES.Buffer instance at the specified memory. |
static SECURITY_ATTRIBUTES |
createSafe(long address)
|
static SECURITY_ATTRIBUTES.Buffer |
createSafe(long address,
int capacity)
|
long |
lpSecurityDescriptor()
Returns the value of the
lpSecurityDescriptor field. |
SECURITY_ATTRIBUTES |
lpSecurityDescriptor(long value)
Sets the specified value to the
lpSecurityDescriptor field. |
static SECURITY_ATTRIBUTES |
malloc()
Returns a new
SECURITY_ATTRIBUTES instance allocated with memAlloc. |
static SECURITY_ATTRIBUTES.Buffer |
malloc(int capacity)
Returns a new
SECURITY_ATTRIBUTES.Buffer instance allocated with memAlloc. |
static SECURITY_ATTRIBUTES |
mallocStack()
Returns a new
SECURITY_ATTRIBUTES instance allocated on the thread-local MemoryStack. |
static SECURITY_ATTRIBUTES.Buffer |
mallocStack(int capacity)
Returns a new
SECURITY_ATTRIBUTES.Buffer instance allocated on the thread-local MemoryStack. |
static SECURITY_ATTRIBUTES.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SECURITY_ATTRIBUTES.Buffer instance allocated on the specified MemoryStack. |
static SECURITY_ATTRIBUTES |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SECURITY_ATTRIBUTES instance allocated on the specified MemoryStack. |
static int |
nbInheritHandle(long struct)
Unsafe version of
bInheritHandle(). |
static void |
nbInheritHandle(long struct,
int value)
Unsafe version of
bInheritHandle. |
int |
nLength()
Returns the value of the
nLength field. |
SECURITY_ATTRIBUTES |
nLength(int value)
Sets the specified value to the
nLength field. |
static long |
nlpSecurityDescriptor(long struct)
Unsafe version of
lpSecurityDescriptor(). |
static void |
nlpSecurityDescriptor(long struct,
long value)
Unsafe version of
lpSecurityDescriptor. |
static int |
nnLength(long struct)
Unsafe version of
nLength(). |
static void |
nnLength(long struct,
int value)
Unsafe version of
nLength. |
SECURITY_ATTRIBUTES |
set(int nLength,
long lpSecurityDescriptor,
boolean bInheritHandle)
Initializes this struct with the specified values.
|
SECURITY_ATTRIBUTES |
set(SECURITY_ATTRIBUTES src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NLENGTH
public static final int LPSECURITYDESCRIPTOR
public static final int BINHERITHANDLE
public SECURITY_ATTRIBUTES(java.nio.ByteBuffer container)
SECURITY_ATTRIBUTES instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int nLength()
nLength field.public long lpSecurityDescriptor()
lpSecurityDescriptor field.public boolean bInheritHandle()
bInheritHandle field.public SECURITY_ATTRIBUTES nLength(int value)
nLength field.public SECURITY_ATTRIBUTES lpSecurityDescriptor(long value)
lpSecurityDescriptor field.public SECURITY_ATTRIBUTES bInheritHandle(boolean value)
bInheritHandle field.public SECURITY_ATTRIBUTES set(int nLength, long lpSecurityDescriptor, boolean bInheritHandle)
public SECURITY_ATTRIBUTES set(SECURITY_ATTRIBUTES src)
src - the source structpublic static SECURITY_ATTRIBUTES malloc()
SECURITY_ATTRIBUTES instance allocated with memAlloc. The instance must be explicitly freed.public static SECURITY_ATTRIBUTES calloc()
SECURITY_ATTRIBUTES instance allocated with memCalloc. The instance must be explicitly freed.public static SECURITY_ATTRIBUTES create()
SECURITY_ATTRIBUTES instance allocated with BufferUtils.public static SECURITY_ATTRIBUTES create(long address)
SECURITY_ATTRIBUTES instance for the specified memory address.@Nullable public static SECURITY_ATTRIBUTES createSafe(long address)
public static SECURITY_ATTRIBUTES.Buffer malloc(int capacity)
SECURITY_ATTRIBUTES.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SECURITY_ATTRIBUTES.Buffer calloc(int capacity)
SECURITY_ATTRIBUTES.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SECURITY_ATTRIBUTES.Buffer create(int capacity)
SECURITY_ATTRIBUTES.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SECURITY_ATTRIBUTES.Buffer create(long address, int capacity)
SECURITY_ATTRIBUTES.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SECURITY_ATTRIBUTES.Buffer createSafe(long address, int capacity)
public static SECURITY_ATTRIBUTES mallocStack()
SECURITY_ATTRIBUTES instance allocated on the thread-local MemoryStack.public static SECURITY_ATTRIBUTES callocStack()
SECURITY_ATTRIBUTES instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SECURITY_ATTRIBUTES mallocStack(org.lwjgl.system.MemoryStack stack)
SECURITY_ATTRIBUTES instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SECURITY_ATTRIBUTES callocStack(org.lwjgl.system.MemoryStack stack)
SECURITY_ATTRIBUTES instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SECURITY_ATTRIBUTES.Buffer mallocStack(int capacity)
SECURITY_ATTRIBUTES.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SECURITY_ATTRIBUTES.Buffer callocStack(int capacity)
SECURITY_ATTRIBUTES.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SECURITY_ATTRIBUTES.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SECURITY_ATTRIBUTES.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SECURITY_ATTRIBUTES.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SECURITY_ATTRIBUTES.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nnLength(long struct)
nLength().public static long nlpSecurityDescriptor(long struct)
lpSecurityDescriptor().public static int nbInheritHandle(long struct)
bInheritHandle().public static void nnLength(long struct,
int value)
nLength.public static void nlpSecurityDescriptor(long struct,
long value)
lpSecurityDescriptor.public static void nbInheritHandle(long struct,
int value)
bInheritHandle.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.