I am in charge of porting Windows JNI code to Java, and have gone with JNA. Using the library is simple enough, as apparently it attempts to follow the structure and style of Windows' API (I do not know the API well, I follow the original JNI code).
I was able to find the JNA equivalent of most Windows API functions, but not EnableWindow
.
This function is defined in winuser.h
and logically, one should find it under com.sun.jna.platform.win32.WinUser
, right? However there is no such function, and the only mention of EnableWindow
is in the documentation of com.sun.jna.platform.win32.WinUser.WS_DISABLED
:
[...] To change this after a window has been created, use the EnableWindow function.
That's it, no other reference, mention or indication towards the function. The rest of the documentation is equally terse and not very helpful when one does not know exactly what and where to look.
So where is JNA's EnableWindow
, if it exists? And if it doesn't, what can be used in replacement?