public static class WinBase.FILETIME extends Structure
| Modifier and Type | Class and Description |
|---|---|
static class |
WinBase.FILETIME.ByReference |
Structure.ByValue, Structure.StructField| Modifier and Type | Field and Description |
|---|---|
int |
dwHighDateTime |
int |
dwLowDateTime |
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE| Constructor and Description |
|---|
FILETIME() |
FILETIME(Date date) |
FILETIME(Pointer memory) |
| Modifier and Type | Method and Description |
|---|---|
static long |
dateToFileTime(Date date)
Converts a
Date into a filetime. |
static Date |
filetimeToDate(int high,
int low)
Converts a Windows FILETIME into a
Date. |
protected List |
getFieldOrder()
Return this Structure's field names in their proper order.
|
Date |
toDate() |
long |
toLong() |
String |
toString()
If
jna.dump_memory is true, will include a native memory dump
of the Structure's backing memory. |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, 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, useMemory, useMemory, write, writeField, writeField, writeFieldpublic FILETIME(Date date)
public FILETIME()
public FILETIME(Pointer memory)
protected List 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 Structurepublic static Date filetimeToDate(int high, int low)
Converts a Windows FILETIME into a Date. The Windows
FILETIME structure holds a date and time associated with a
file. The structure identifies a 64-bit integer specifying the
number of 100-nanosecond intervals which have passed since
January 1, 1601. This 64-bit value is split into the two double
words stored in the structure.
high - The higher double word of the FILETIME structure.low - The lower double word of the FILETIME structure.Date.public static long dateToFileTime(Date date)
Converts a Date into a filetime.
date - The date to be convertedfiletimeToDate(int, int)public Date toDate()
public long toLong()