Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Next Release (5.19.0)

Features
--------
* [#1696](https://github.com/java-native-access/jna/pull/1696): Add `LARGE_INTEGER.ByValue` to `LARGE_INTEGER` in `WinNT.java` - [@baier233](https://github.com/baier233).

Bug Fixes
---------
Expand Down Expand Up @@ -1464,4 +1465,4 @@ Bug Fixes
* Ensure native libraries are only loaded once until released
* Properly handle NULL when the return value is a Structure
* Proper conversion to wchar_t on linux
* Copy full length of Java strings to C strings instead of stopping when a NUL character is encountered
* Copy full length of Java strings to C strings instead of stopping when a NUL character is encountered
23 changes: 23 additions & 0 deletions contrib/platform/src/com/sun/jna/platform/win32/WinNT.java
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,31 @@ public static class LUID extends Structure {
*/
@FieldOrder({"u"})
public static class LARGE_INTEGER extends Structure implements Comparable<LARGE_INTEGER> {

public static class ByReference extends LARGE_INTEGER implements
Structure.ByReference {

public ByReference() {
super();
}

public ByReference(long value) {
super(value);
}

}

public static class ByValue extends LARGE_INTEGER implements
Structure.ByValue {

public ByValue() {
super();
}

public ByValue(long value) {
super(value);
}

}

@FieldOrder({"LowPart", "HighPart"})
Expand Down
Loading