Exemplo n.º 1
0
 public Pointer SendMessageTimeoutA(
     Pointer hWnd, Messages Msg, FType wParam, int lParam, int fuFlags, int uTimeout)
     throws Exception {
   PointerByReference lpdwResult = new PointerByReference();
   int ret =
       u32.SendMessageTimeoutA(
           hWnd, Msg.getValue(), wParam.getValue(), lParam, fuFlags, uTimeout, lpdwResult);
   if (ret == 0) {
     int err = Native.getLastError();
     throw new Exception("GetClassLong failed. Error: " + err);
   }
   return lpdwResult.getValue();
 }
Exemplo n.º 2
0
 public Pointer SendMessageA(Pointer hWnd, Messages Msg, FType wParam, int lParam) {
   return u32.SendMessageA(hWnd, Msg.getValue(), wParam.getValue(), lParam);
 }