Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to SetWindowsHookEx with Java native access (JNA)

805044Aug 3 2011
Hey guys,

How can i set up windows hook with WH_FOREGROUNDIDLE and the following call back Functions

DWORD CALLBACK ForegroundIdleProc( __in int code, DWORD wParam, LONG lParam );

I am trying to detect when a thread/process goes idle
i have obtained the threadProccessId by using the following functions

GetForegroundWindow -> GetWindowThreadProcessId.

Cheers
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2011
Added on Aug 3 2011
0 comments
1,367 views