!include once #1030303 // JNA Win32 svoid jnaWindows_setAlwaysOnTop(HWND window) { if (window == null) ret; HWND HWND_TOPMOST = new(new Pointer(-1)); int SWP_NOSIZE = 0x0001; int SWP_NOMOVE = 0x0002; int TOPMOST_FLAGS = SWP_NOMOVE | SWP_NOSIZE; User32.INSTANCE.SetWindowPos(window, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS); }