thankyou, but i don't found User32.java file in the download.
2008/5/21 Scott Palmer <scot...@2connected.org>:
The "..." simply means that there was more content there that was not
shown to save space. Check the User32.java file from the examples included
in the download.
Scott
On 21-May-08, at 6:14 PM, bruno duarte wrote:
hi! i'm from brasil!
I see example in the homepage of the JNA <https://jna.dev.java.net/>
this example is i need for my application. but i do not run. becouse i do
not undestend "..."
PLEASE, post me this example complete! per God!
public interface User32 extends StdCallLibrary {
interface WNDENUMPROC extends StdCallCallback {
/** Return whether to continue enumeration. */
boolean callback(Pointer hWnd, Pointer arg);
}
boolean EnumWindows(WNDENUMPROC lpEnumFunc, Pointer arg);
}
... *hi! I do not undestend this "..." ! please!!*
User32 user32 = User32.INSTANCE;
user32.EnumWindows(new WNDENUMPROC() {
int count;
public boolean callback(Pointer hWnd, Pointer userData) {
System.out.println("Found window " + hWnd + ", total " + ++count);
return true;
}
}, null);
Bruno Queiroz Duarte.
Bruno Queiroz Duarte.