0 Replies Latest reply on Aug 3, 2011 1:20 PM by 805044

    how to SetWindowsHookEx  with Java native access (JNA)

      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.