Examples of LRESULT


Examples of com.sun.jna.platform.win32.WinDef.LRESULT

   */
  public LRESULT callback(HWND hwnd, int uMsg, WPARAM wParam, LPARAM lParam) {
    switch (uMsg) {
    case WinUser.WM_CREATE: {
      onCreate(wParam, lParam);
      return new LRESULT(0);
    }
    case WinUser.WM_DESTROY: {
      User32.INSTANCE.PostQuitMessage(0);
      return new LRESULT(0);
    }
    case WinUser.WM_SESSION_CHANGE: {
      this.onSessionChange(wParam, lParam);
      return new LRESULT(0);
    }
    case WinUser.WM_DEVICECHANGE: {
      LRESULT lResult = this.onDeviceChange(wParam, lParam);
      return lResult != null ? lResult :
        User32.INSTANCE.DefWindowProc(hwnd, uMsg, wParam, lParam);
    }
    default:
      return User32.INSTANCE.DefWindowProc(hwnd, uMsg, wParam, lParam);
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.LRESULT

      return null;
    }
    // return TRUE means processed message for this wParam.
    // see http://msdn.microsoft.com/en-us/library/windows/desktop/aa363205.aspx
    // see http://msdn.microsoft.com/en-us/library/windows/desktop/aa363208.aspx
    return new LRESULT(1);
  }
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.LRESULT

  protected LRESULT onDeviceChangeNodesChanged() {
    System.out.println("Message DBT_DEVNODES_CHANGED");
    // return TRUE means processed message for this wParam.
    // see http://msdn.microsoft.com/en-us/library/windows/desktop/aa363211.aspx
    return new LRESULT(1);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.