Skip to content

Commit fd2b781

Browse files
committed
Add LARGE_INTEGER.ByValue to LARGE_INTEGER in WinNT.java
1 parent dc44b98 commit fd2b781

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,3 +1465,8 @@ Bug Fixes
14651465
* Properly handle NULL when the return value is a Structure
14661466
* Proper conversion to wchar_t on linux
14671467
* Copy full length of Java strings to C strings instead of stopping when a NUL character is encountered
1468+
1469+
Features
1470+
--------
1471+
1472+
* [#1696](https://github.com/java-native-access/jna/pull/1696): Add `LARGE_INTEGER.ByValue` to `LARGE_INTEGER` in `WinNT.java` - [@Baier](https://github.com/baier233).

contrib/platform/src/com/sun/jna/platform/win32/WinNT.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,8 +1181,30 @@ public static class LUID extends Structure {
11811181
*/
11821182
@FieldOrder({"u"})
11831183
public static class LARGE_INTEGER extends Structure implements Comparable<LARGE_INTEGER> {
1184+
11841185
public static class ByReference extends LARGE_INTEGER implements
11851186
Structure.ByReference {
1187+
1188+
public ByReference() {
1189+
super();
1190+
}
1191+
1192+
public ByReference(long value) {
1193+
super(value);
1194+
}
1195+
1196+
}
1197+
public static class ByValue extends LARGE_INTEGER implements
1198+
Structure.ByValue {
1199+
1200+
public ByValue() {
1201+
super();
1202+
}
1203+
1204+
public ByValue(long value) {
1205+
super(value);
1206+
}
1207+
11861208
}
11871209

11881210
@FieldOrder({"LowPart", "HighPart"})

0 commit comments

Comments
 (0)