Hello,
the constructor Pointer(long peer) is not public. Could you pls set it
to public.
I have the following issue:
I am receiving messages through a callback function.
The function definition requires an int (LPARAM), which is sometimes
interpreted as int sometimes as a window handle.
LRESULT CALLBACK HookProc(
int nCode,
WPARAM wParam,
LPARAM lParam
);
But
HWND hWnd = new Pointer(lParam)
is currently not possible.
I tried to define LPARAM as UNION, so that I could interpret it as int or
Pointer, but this does not seem to work. It always returns null.
To get my program to work I patched Pointer. I would be regretful if you could
include this in the distribution.
The reverse function , long Pointer.getPeer(), would also be very helpful.
In https://jna.dev.java.net/issues/show_bug.cgi?id=43 you indicate how to get
around this. Which worked for me.
However Pointer.getPeer() would make life easier.
- Ron