It looks to me you are not setting User32.FLASHWINFO correctly. You need to
set *cbSize *field (I didn't checked the names of the fields in the jna code
but in msdn, but I they should be the same) to the size of the structure. I
believe you can call info.size() for getting the size of the structure.
-Daniel
On 1/8/09, James Moger <jame...@gmail.com> wrote:
Hi all,
I've been using the registry manipulation bits of JNA with great success
for some time now.
I want to use the FlashWindowEx function which is at least stubbed in the
User32 interface.
I haven't found any previous mailing list posting about it nor has Google
turned up anything useful.
The following code does not throw any exceptions but also does nothing:
HWND hwnd = new HWND();
hwnd.setPointer(Native.getComponentPointer(myJframe));
User32 user = User32.INSTANCE;
User32.FLASHWINFO info = new User32.FLASHWINFO();
info.dwFlags = User32.FLASHW_ALL | User32.FLASHW_TIMERNOFG; // flash
titlebar & task bar until activated
info.hWnd = hwnd;
user.FlashWindowEx(info);
I'm using an older release (3.0.1) on WinXP.
Does anyone have suggestions on what I may be doing wrong?