Package org.lwjgl.system.windows
Class CRYPTPROTECT_PROMPTSTRUCT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CRYPTPROTECT_PROMPTSTRUCT>
org.lwjgl.system.windows.CRYPTPROTECT_PROMPTSTRUCT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class CRYPTPROTECT_PROMPTSTRUCT
extends Struct<CRYPTPROTECT_PROMPTSTRUCT>
implements NativeResource
struct CRYPTPROTECT_PROMPTSTRUCT {
DWORD cbSize;
DWORD dwPromptFlags;
HWND hwndApp;
LPCWSTR szPrompt;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionCRYPTPROTECT_PROMPTSTRUCT
(ByteBuffer container) Creates aCRYPTPROTECT_PROMPTSTRUCT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CRYPTPROTECT_PROMPTSTRUCT
calloc()
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated withmemCalloc
.static CRYPTPROTECT_PROMPTSTRUCT
calloc
(MemoryStack stack) Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
cbSize()
cbSize
(int value) Sets the specified value to thecbSize
field.Sets the default value to thecbSize
field.static CRYPTPROTECT_PROMPTSTRUCT
create()
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated withBufferUtils
.static CRYPTPROTECT_PROMPTSTRUCT
create
(long address) Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance for the specified memory address.static @Nullable CRYPTPROTECT_PROMPTSTRUCT
createSafe
(long address) int
dwPromptFlags
(int value) Sets the specified value to thedwPromptFlags
field.long
hwndApp()
hwndApp
(long value) Sets the specified value to thehwndApp
field.static CRYPTPROTECT_PROMPTSTRUCT
malloc()
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated withmemAlloc
.static CRYPTPROTECT_PROMPTSTRUCT
malloc
(MemoryStack stack) Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated on the specifiedMemoryStack
.static int
ncbSize
(long struct) Unsafe version ofcbSize()
.static void
ncbSize
(long struct, int value) Unsafe version ofcbSize
.static int
ndwPromptFlags
(long struct) Unsafe version ofdwPromptFlags()
.static void
ndwPromptFlags
(long struct, int value) Unsafe version ofdwPromptFlags
.static long
nhwndApp
(long struct) Unsafe version ofhwndApp()
.static void
nhwndApp
(long struct, long value) Unsafe version ofhwndApp
.static ByteBuffer
nszPrompt
(long struct) Unsafe version ofszPrompt()
.static void
nszPrompt
(long struct, ByteBuffer value) Unsafe version ofszPrompt
.static String
nszPromptString
(long struct) Unsafe version ofszPromptString()
.set
(int cbSize, int dwPromptFlags, long hwndApp, ByteBuffer szPrompt) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.szPrompt()
szPrompt
(ByteBuffer value) Sets the address of the specified encoded string to theszPrompt
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CBSIZE
public static final int CBSIZEThe struct member offsets. -
DWPROMPTFLAGS
public static final int DWPROMPTFLAGSThe struct member offsets. -
HWNDAPP
public static final int HWNDAPPThe struct member offsets. -
SZPROMPT
public static final int SZPROMPTThe struct member offsets.
-
-
Constructor Details
-
CRYPTPROTECT_PROMPTSTRUCT
Creates aCRYPTPROTECT_PROMPTSTRUCT
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CRYPTPROTECT_PROMPTSTRUCT>
-
cbSize
public int cbSize()- Returns:
- the value of the
cbSize
field.
-
dwPromptFlags
public int dwPromptFlags()- Returns:
- the value of the
dwPromptFlags
field.
-
hwndApp
public long hwndApp()- Returns:
- the value of the
hwndApp
field.
-
szPrompt
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theszPrompt
field.
-
szPromptString
- Returns:
- the null-terminated string pointed to by the
szPrompt
field.
-
cbSize
Sets the specified value to thecbSize
field. -
cbSize$Default
Sets the default value to thecbSize
field. -
dwPromptFlags
Sets the specified value to thedwPromptFlags
field. -
hwndApp
Sets the specified value to thehwndApp
field. -
szPrompt
Sets the address of the specified encoded string to theszPrompt
field. -
set
public CRYPTPROTECT_PROMPTSTRUCT set(int cbSize, int dwPromptFlags, long hwndApp, ByteBuffer szPrompt) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated withBufferUtils
. -
create
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
ncbSize
public static int ncbSize(long struct) Unsafe version ofcbSize()
. -
ndwPromptFlags
public static int ndwPromptFlags(long struct) Unsafe version ofdwPromptFlags()
. -
nhwndApp
public static long nhwndApp(long struct) Unsafe version ofhwndApp()
. -
nszPrompt
Unsafe version ofszPrompt()
. -
nszPromptString
Unsafe version ofszPromptString()
. -
ncbSize
public static void ncbSize(long struct, int value) Unsafe version ofcbSize
. -
ndwPromptFlags
public static void ndwPromptFlags(long struct, int value) Unsafe version ofdwPromptFlags
. -
nhwndApp
public static void nhwndApp(long struct, long value) Unsafe version ofhwndApp
. -
nszPrompt
Unsafe version ofszPrompt
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-