Package org.sf.feeling.swt.win32.internal.extension

Examples of org.sf.feeling.swt.win32.internal.extension.MCI_OPEN_PARMSW


      eventObject.reset();
      eventLoop.installHook();
      while (messageThreadAlive) {
        eventObject.waitFor();
        if (messageThreadAlive) {
          HookData hookData = (HookData) Extension
              .ReadHookData(descriptor.getValue());
          notifyListeners(hookData);
          eventObject.reset();
        }
      }
View Full Code Here


   * JournalHookData.
   *
   * @see HookInterceptor#intercept(int,int,int)
   */
  public InterceptorFlag intercept(int nCode, int wParam, int lParam) {
    JournalHookData hookData = new JournalHookData();
    hookData.setWParam(wParam);
    hookData.setLParam(lParam);
    hookData.setNCode(nCode);
    hookData.setStruct(EVENTMSG.valueOf(lParam));
    return intercept(hookData);
  }
View Full Code Here

   * the Keyboard_LLHookData.
   *
   * @see HookInterceptor#intercept(int,int,int)
   */
  public InterceptorFlag intercept(int nCode, int wParam, int lParam) {
    Keyboard_LLHookData hookData = new Keyboard_LLHookData();
    hookData.setWParam(wParam);
    hookData.setLParam(lParam);
    hookData.setNCode(nCode);
    hookData.setStruct(KBDLLHOOKSTRUCT.valueOf(lParam));
    return intercept(hookData);
  }
View Full Code Here

public abstract class MessageHookEventListener implements HookEventListener
{

  public void acceptHookData(HookData data)
  {
    MessageHookData hookData = (MessageHookData) data;
    acceptMessageHookData(hookData);
  }
View Full Code Here

public abstract class MouseHookEventListener implements HookEventListener
{

  public void acceptHookData(HookData data)
  {
    MouseHookData hookData = (MouseHookData) data;
    acceptHookData(hookData);
  }
View Full Code Here

   * Mouse_LLHookData.
   *
   * @see HookInterceptor#intercept(int,int,int)
   */
  public InterceptorFlag intercept(int nCode, int wParam, int lParam) {
    Mouse_LLHookData hookData = new Mouse_LLHookData();
    hookData.setWParam(wParam);
    hookData.setLParam(lParam);
    hookData.setNCode(nCode);
    hookData.setStruct(MSLLHOOKSTRUCT.valueOf(lParam));
    return intercept(hookData);
  }
View Full Code Here

    }
    MSG msg = (MSG) Display.getDefault().getData(HHOOKMSG);
    OS.MoveMemory(msg, lParam, MSG.sizeof);
    if (!container.isDisposed()) {
      if (container.getHookInterceptor() != null) {
        Msg message = new Msg(msg);
        if (container.getHookInterceptor().intercept(message, code,
            wParam, lParam) == true) {
          message.setMessage(Win32.WM_NULL);
          message.setLParam(0);
          message.setWParam(0);
          message.saveToPoint(lParam);
          return 0;
        }
      }
    }
    return Extension.CallNextHookEx(hHook.value, (int) /* 64 */code,
 
View Full Code Here

  private static int hMouseHook = 0;
  private static boolean isInstall = false;

  static int Mouse_LLHookProc(int nCode, int wParam, int lParam) {
    if (interceptor != null) {
      InterceptorFlag flag = interceptor.intercept(nCode, wParam, lParam);
      if (InterceptorFlag.FALSE.equals(flag))
        return -1;
      else if (flag.isCustom())
        return flag.getValue();
    }
    return Extension.CallNextHookEx(hMouseHook, nCode, wParam, lParam);
  }
View Full Code Here

  private static int hJournalRecordHook = 0;
  private static boolean isInstall = false;

  static int JournalRecordHookProc(int nCode, int wParam, int lParam) {
    if (interceptor != null) {
      InterceptorFlag flag = interceptor.intercept(nCode, wParam, lParam);
      if (InterceptorFlag.FALSE.equals(flag))
        return -1;
      else if (flag.isCustom())
        return flag.getValue();
    }
    return Extension.CallNextHookEx(hJournalRecordHook, nCode, wParam,
        lParam);
  }
View Full Code Here

  private static int hKeyboardHook = 0;
  private static boolean isInstall = false;

  static int Keyboard_LLHookProc(int nCode, int wParam, int lParam) {
    if (interceptor != null) {
      InterceptorFlag flag = interceptor.intercept(nCode, wParam, lParam);
      if (InterceptorFlag.FALSE.equals(flag))
        return -1;
      else if (flag.isCustom())
        return flag.getValue();
    }
    return Extension.CallNextHookEx(hKeyboardHook, nCode, wParam, lParam);
  }
View Full Code Here

TOP

Related Classes of org.sf.feeling.swt.win32.internal.extension.MCI_OPEN_PARMSW

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.