Structure.ByReference, Structure.ByValue, Structure.StructField| Modifier and Type | Field | Description |
|---|---|---|
int |
cb |
The structure's size, in bytes.
|
int |
dwTime |
The Windows time at which the action specified by the fsAction member
takes place.
|
static List<String> |
FIELDS |
|
int |
fsAction |
The action being performed on the string identified by the hsz
member.
|
Ddeml.HSZ |
hsz |
A handle to the string.
|
WinNT.HANDLE |
hTask |
A handle to the task (application instance) performing the action on
the string handle.
|
byte[] |
str |
String identified by the hsz member.
|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE| Constructor | Description |
|---|---|
MONHSZSTRUCT() |
| Modifier and Type | Method | Description |
|---|---|---|
protected List<String> |
getFieldOrder() |
Return this Structure's field names in their proper order.
|
String |
getStr() |
|
void |
read() |
Reads the fields of the struct from native memory
|
void |
write() |
Writes the fields of the struct to native memory
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallocateMemory, 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, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, writeField, writeField, writeFieldpublic int cb
public int fsAction
| Value | Meaning |
|---|---|
| MH_CLEANUP (4) | An application is freeing its DDE resources, causing the system
to delete string handles the application had created. (The
application called the Ddeml.DdeUninitialize(int) function.) |
| MH_CREATE (1) | An application is creating a string handle. (The application
called the Ddeml.DdeCreateStringHandle(int, java.lang.String, int) function.) |
| MH_DELETE (3) | An application is deleting a string handle. (The application
called the Ddeml.DdeFreeStringHandle(int, com.sun.jna.platform.win32.Ddeml.HSZ) function.) |
| MH_KEEP (2) | An application is increasing the usage count of a string handle.
(The application called the Ddeml.DdeKeepStringHandle(int, com.sun.jna.platform.win32.Ddeml.HSZ) function.) |
public int dwTime
public Ddeml.HSZ hsz
public WinNT.HANDLE hTask
public byte[] str
public void write()
Structurepublic void read()
Structurepublic String getStr()
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