Skip to content

Commit

Permalink
[Win32] Add support for options in Winspool notifications API
Browse files Browse the repository at this point in the history
Adds in the Java mappings for a number of structures required to
allow specifying complex options to `Winspool`s notification APIs.

Note that this is technically an API breaking change as the
definitions of `FindFirstPrinterChangeNotification()` and
`FindNextPrinterChangeNotification()` have had their parameters
changed from LPVOID to the appropriate structures. This is unlikely
to cause issues for users of the library though, as it wasn't possible
to use the functions in the way they were defined previously (unless
you were passing `null` in place of the structures).

Shout out to @matthiasblaesing for helping to fix the function
definitions - more info here:
https://groups.google.com/g/jna-users/c/FpWPY2c8bzY
  • Loading branch information
ianjoneill committed Jan 20, 2021
1 parent f3fd2ca commit 4667480
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 12 deletions.
2 changes: 1 addition & 1 deletion contrib/monitordemo/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<property name="classes" location="${build}/classes"/>
<property name="jar" location="${build}/demo-monitordemo.jar"/>
<property name="file.reference.jna.jar" location="../../build/jna.jar"/>
<property name="main-class" value="com.sun.jna.contrib.demo.MonitorInfoDemo.java" />
<property name="main-class" value="com.sun.jna.contrib.demo.MonitorInfoDemo" />

<path id="classpath">
<fileset file="${file.reference.jna.jar}"/>
Expand Down
Loading

0 comments on commit 4667480

Please sign in to comment.