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

Examples of org.sf.feeling.swt.win32.extension.function.Function


    int address = callback.getAddress();
    if (address != 0)
    {
      try
      {
        Function function = new Function(USER32_LIB, FUNTION_ENUMCHILDWINDOWS);
        function.invoke_I(handle, address, 0);
        function.close();
      } catch (Exception e)
      {
        SWT.error(SWT.ERROR_INVALID_ARGUMENT);
      }
      callback.dispose();
View Full Code Here


    int address = callback.getAddress();
    if (address != 0)
    {
      try
      {
        Function function = new Function(USER32_LIB, FUNTION_ENUMWINDOWS);
        function.invoke_I(address, 0);
        function.close();
      } catch (Exception e)
      {
        SWT.error(SWT.ERROR_INVALID_ARGUMENT);
      }
      callback.dispose();
View Full Code Here

      Extension.MoveMemory(lpWindowName, buffer, byteCount);
    }

    try
    {
      Function function = new Function(USER32_LIB, FUNTION_FINDWINDOWEX);
      result = function.invoke_I(parent, hwndChildAfter, lpClassName, lpWindowName);
      function.close();
    } catch (Exception e)
    {
      SWT.error(SWT.ERROR_INVALID_ARGUMENT);
    }
    if (lpClassName != 0) OS.HeapFree(hHeap, 0, lpClassName);
View Full Code Here

   */
  public static boolean isWindow(int handle)
  {
    try
    {
      Function function = new Function(USER32_LIB, FUNTION_ISWINDOW);
      int result = function.invoke_I(handle);
      function.close();
      return result != 0;
    } catch (Exception e)
    {
      SWT.error(SWT.ERROR_INVALID_ARGUMENT);
      return false;
View Full Code Here

      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

TOP

Related Classes of org.sf.feeling.swt.win32.extension.function.Function

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.