2 messages in net.java.dev.jna.users[jna-users] Get Callback´s Pointer
FromSent OnAttachments
Ulisses CarvalhoJul 11, 2008 4:57 pm 
Timothy WallJul 11, 2008 5:01 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] Get Callback´s PointerActions...
From:Ulisses Carvalho (ulis@gmail.com)
Date:Jul 11, 2008 4:57:01 pm
List:net.java.dev.jna.users

Somebody knows who i can get a callback´s pointer?

I have this callbak:

User32.WNDPROC WndProc = new User32.WNDPROC() {

public LRESULT callback(HWND hWnd, int uMsg, WPARAM wParam, LPARAM lParam) { System.out.println("===================================="); System.out.println(hWnd); System.out.println(uMsg); System.out.println(wParam); System.out.println(lParam); int id = User32.INSTANCE.GetWindowThreadProcessId(hWnd, null); System.out.println("ThreadID = " + id); System.out.println("====================================");

//return User32.INSTANCE.CallNextHookEx(hhk, uMsg, wParam, lParam); return new LRESULT(0); } };

How to get a pointer for WndPro?

I need this for executing User32.SetWindowLong(HWND, int, Pointer)