diff --git a/CHANGES.md b/CHANGES.md index af7a72186..34bdcca29 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 --------- @@ -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 \ No newline at end of file diff --git a/contrib/platform/src/com/sun/jna/platform/win32/WinNT.java b/contrib/platform/src/com/sun/jna/platform/win32/WinNT.java index 22e5a7236..b2d73fa17 100644 --- a/contrib/platform/src/com/sun/jna/platform/win32/WinNT.java +++ b/contrib/platform/src/com/sun/jna/platform/win32/WinNT.java @@ -1181,8 +1181,31 @@ public static class LUID extends Structure { */ @FieldOrder({"u"}) public static class LARGE_INTEGER extends Structure implements Comparable { + 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"})