Package org.lwjgl.system.windows
Class CRYPTPROTECT_PROMPTSTRUCT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.windows.CRYPTPROTECT_PROMPTSTRUCT
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CRYPTPROTECT_PROMPTSTRUCT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Provides the text of a prompt and information about when and where that prompt is to be displayed when using the
Crypt32.CryptProtectData(org.lwjgl.system.windows.DATA_BLOB, java.nio.ByteBuffer, org.lwjgl.system.windows.DATA_BLOB, long, org.lwjgl.system.windows.CRYPTPROTECT_PROMPTSTRUCT, int, org.lwjgl.system.windows.DATA_BLOB)
and
Crypt32.CryptUnprotectData(org.lwjgl.system.windows.DATA_BLOB, org.lwjgl.PointerBuffer, org.lwjgl.system.windows.DATA_BLOB, long, org.lwjgl.system.windows.CRYPTPROTECT_PROMPTSTRUCT, int, org.lwjgl.system.windows.DATA_BLOB)
functions.
Layout
struct CRYPTPROTECT_PROMPTSTRUCT {
DWORD cbSize()
;
DWORD dwPromptFlags()
;
HWND hwndApp()
;
LPCWSTR szPrompt()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier 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
ConstructorDescriptionCRYPTPROTECT_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
(org.lwjgl.system.MemoryStack stack) Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
cbSize()
the size, in bytes, of this structurecbSize
(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 CRYPTPROTECT_PROMPTSTRUCT
createSafe
(long address) int
flags that indicate when prompts to the user are to be displayed.dwPromptFlags
(int value) Sets the specified value to thedwPromptFlags()
field.long
hwndApp()
window handle to the parent windowhwndApp
(long value) Sets the specified value to thehwndApp()
field.static CRYPTPROTECT_PROMPTSTRUCT
malloc()
Returns a newCRYPTPROTECT_PROMPTSTRUCT
instance allocated withmemAlloc
.static CRYPTPROTECT_PROMPTSTRUCT
malloc
(org.lwjgl.system.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()
szPrompt()
a string containing the text of a prompt to be displayedszPrompt
(ByteBuffer value) Sets the address of the specified encoded string to theszPrompt()
field.a string containing the text of a prompt to be displayedstatic void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
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()- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
cbSize
public int cbSize()the size, in bytes, of this structure -
dwPromptFlags
public int dwPromptFlags()flags that indicate when prompts to the user are to be displayed. One or more of:Crypt32.CRYPTPROTECT_PROMPT_ON_UNPROTECT
Crypt32.CRYPTPROTECT_PROMPT_ON_PROTECT
-
hwndApp
public long hwndApp()window handle to the parent window -
szPrompt
a string containing the text of a prompt to be displayed -
szPromptString
a string containing the text of a prompt to be displayed -
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
-