JNA library, missing Windows feature: how to add new features?

I have a question about Java and the jna library. I downloaded two banks ( jna.jar and platform.jar ) from java.net.

The com.sun.jna.platform.win32 package already has certain interfaces that bind win dll, but there is no function in the Kernel32 file, the DeviceIoControl function.

My questions:

  • Where can I find a complete list of all window dlls with a complete list of all functions and, possibly, a compatibility list with all versions of windows? (very important) From the msdn website, I found a complete list of functions with the name of the library that contains the functions, but not with another.

  • Can I create a new interface that extends Kernel32, so I can add the missing features? Why are some functions missing from the official site of the project in their bank?

Thank you all in advance

Francesco

+4
source share
1 answer

Q: Where can I find a complete list of all window DLLs with a complete list of all functions and, possibly, a compatibility list with all versions of windows? (very important) From the msdn website, I found a complete list of functions with the name of the library where the functions are contained, but not others.

A: Yes, the MSDN library website is the preferred choice of http://msdn.microsoft.com/en-us/library/default.aspx . But I do not understand why you cannot find others. This is absolutely everything if you know how to look for them. But some features may not be as light as COM interfaces, which are difficult to properly translate into the JNA version.

Q: Can I create a new interface that extends Kernel32, so I can add the missing features? Why, from the official site of the project, in their jar, some functions are not?

A: Yes, it is possible. The JNA Win32 platform, in its current form, provides basic interfaces for common Kernel32 functions, you may need to add your own for missing ones.

+2
source

All Articles