WinUser.KEYBDINPUT.ByReference
public static class WinUser.KEYBDINPUT extends Structure
Modifier and Type | Class | Description |
---|---|---|
static class |
WinUser.KEYBDINPUT.ByReference |
Structure.ByValue, Structure.StructField
Modifier and Type | Field | Description |
---|---|---|
BaseTSD.ULONG_PTR |
dwExtraInfo |
An additional value associated with the keystroke.
|
WinDef.DWORD |
dwFlags |
Specifies various aspects of a keystroke.
|
static int |
KEYEVENTF_EXTENDEDKEY |
If specified, the scan code was preceded by a prefix byte that has
the value 0xE0 (224).
|
static int |
KEYEVENTF_KEYUP |
If specified, the key is being released.
|
static int |
KEYEVENTF_SCANCODE |
If specified, wScan identifies the key and wVk is ignored.
|
static int |
KEYEVENTF_UNICODE |
If specified, the system synthesizes a VK_PACKET keystroke.
|
WinDef.DWORD |
time |
The time stamp for the event, in milliseconds.
|
WinDef.WORD |
wScan |
A hardware scan code for the key.
|
WinDef.WORD |
wVk |
A virtual-key code.
|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor | Description |
---|---|
KEYBDINPUT() |
|
KEYBDINPUT(Pointer memory) |
Modifier and Type | Method | Description |
---|---|---|
protected List<String> |
getFieldOrder() |
Return this Structure's field names in their proper order.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public static final int KEYEVENTF_EXTENDEDKEY
public static final int KEYEVENTF_KEYUP
public static final int KEYEVENTF_UNICODE
public static final int KEYEVENTF_SCANCODE
public WinDef.WORD wVk
public WinDef.WORD wScan
public WinDef.DWORD dwFlags
public WinDef.DWORD time
public BaseTSD.ULONG_PTR dwExtraInfo
public KEYBDINPUT()
public KEYBDINPUT(Pointer memory)
protected List<String> getFieldOrder()
Structure
protected List getFieldOrder() {
return Arrays.asList(new String[] { ... });
}
IMPORTANT
When deriving from an existing Structure subclass, ensure that
you augment the list provided by the superclass, e.g.
protected List getFieldOrder() {
List fields = new ArrayList(super.getFieldOrder());
fields.addAll(Arrays.asList(new String[] { ... }));
return fields;
}
Field order must be explicitly indicated, since the
field order as returned by Class.getFields()
is not
guaranteed to be predictable.getFieldOrder
in class Structure