| 1 11 package org.eclipse.swt.internal.ole.win32; 12 13 import java.util.Hashtable ; 14 import org.eclipse.swt.*; 15 import org.eclipse.swt.internal.*; 16 import org.eclipse.swt.internal.win32.*; 17 18 19 public class COMObject { 20 21 public int ppVtable; 22 23 static private final int MAX_ARG_COUNT = 12; 24 static private final int MAX_VTABLE_LENGTH = 80; 25 static private Callback[][] Callbacks = new Callback[MAX_VTABLE_LENGTH][MAX_ARG_COUNT]; 26 static private Hashtable ObjectMap = new Hashtable (); 27 28 public COMObject(int[] argCounts) { 29 int[] callbackAddresses = new int[argCounts.length]; 30 synchronized (Callbacks) { 31 for (int i = 0, length = argCounts.length; i < length; i++){ 32 if ((Callbacks[i][argCounts[i]]) == null) { 33 Callbacks[i][argCounts[i]] = new Callback(this.getClass(), "callback"+i, argCounts[i] + 1, true, COM.E_FAIL); if (Callbacks[i][argCounts[i]].getAddress() == 0) SWT.error(SWT.ERROR_NO_MORE_CALLBACKS); 35 } 36 callbackAddresses[i] = Callbacks[i][argCounts[i]].getAddress(); 37 } 38 } 39 40 int pVtable = OS.GlobalAlloc(COM.GMEM_FIXED | COM.GMEM_ZEROINIT, 4 * argCounts.length); 41 COM.MoveMemory(pVtable, callbackAddresses, 4 * argCounts.length); 42 ppVtable = OS.GlobalAlloc(COM.GMEM_FIXED | COM.GMEM_ZEROINIT, 4); 43 COM.MoveMemory(ppVtable, new int[] {pVtable}, 4); 44 ObjectMap.put(new Integer (ppVtable), this); 45 } 46 47 public static GUID IIDFromString(String lpsz) { 48 char[] buffer = (lpsz +"\0").toCharArray(); 50 51 GUID lpiid = new GUID(); 53 if (COM.IIDFromString(buffer, lpiid) == COM.S_OK) 54 return lpiid; 55 return null; 56 } 57 58 static int callback0(int[] callbackArgs) { 59 int address = callbackArgs[0]; 61 Object object = ObjectMap.get(new Integer (address)); 62 if (object == null) return COM.E_FAIL; 63 int[] args = new int[callbackArgs.length - 1]; 64 System.arraycopy(callbackArgs, 1, args, 0, args.length); 65 return ((COMObject) object).method0(args); 66 } 67 static int callback1(int[] callbackArgs) { 68 int address = callbackArgs[0]; 70 Object object = ObjectMap.get(new Integer (address)); 71 if (object == null) return COM.E_FAIL; 72 int[] args = new int[callbackArgs.length - 1]; 73 System.arraycopy(callbackArgs, 1, args, 0, args.length); 74 return ((COMObject) object).method1(args); 75 } 76 static int callback2(int[] callbackArgs) { 77 int address = callbackArgs[0]; 79 Object object = ObjectMap.get(new Integer (address)); 80 if (object == null) return COM.E_FAIL; 81 int[] args = new int[callbackArgs.length - 1]; 82 System.arraycopy(callbackArgs, 1, args, 0, args.length); 83 return ((COMObject) object).method2(args); 84 } 85 static int callback3(int[] callbackArgs) { 86 int address = callbackArgs[0]; 88 Object object = ObjectMap.get(new Integer (address)); 89 if (object == null) return COM.E_FAIL; 90 int[] args = new int[callbackArgs.length - 1]; 91 System.arraycopy(callbackArgs, 1, args, 0, args.length); 92 return ((COMObject) object).method3(args); 93 } 94 static int callback4(int[] callbackArgs) { 95 int address = callbackArgs[0]; 97 Object object = ObjectMap.get(new Integer (address)); 98 if (object == null) return COM.E_FAIL; 99 int[] args = new int[callbackArgs.length - 1]; 100 System.arraycopy(callbackArgs, 1, args, 0, args.length); 101 return ((COMObject) object).method4(args); 102 } 103 static int callback5(int[] callbackArgs) { 104 int address = callbackArgs[0]; 106 Object object = ObjectMap.get(new Integer (address)); 107 if (object == null) return COM.E_FAIL; 108 int[] args = new int[callbackArgs.length - 1]; 109 System.arraycopy(callbackArgs, 1, args, 0, args.length); 110 return ((COMObject) object).method5(args); 111 } 112 static int callback6(int[] callbackArgs) { 113 int address = callbackArgs[0]; 115 Object object = ObjectMap.get(new Integer (address)); 116 if (object == null) return COM.E_FAIL; 117 int[] args = new int[callbackArgs.length - 1]; 118 System.arraycopy(callbackArgs, 1, args, 0, args.length); 119 return ((COMObject) object).method6(args); 120 } 121 static int callback7(int[] callbackArgs) { 122 int address = callbackArgs[0]; 124 Object object = ObjectMap.get(new Integer (address)); 125 if (object == null) return COM.E_FAIL; 126 int[] args = new int[callbackArgs.length - 1]; 127 System.arraycopy(callbackArgs, 1, args, 0, args.length); 128 return ((COMObject) object).method7(args); 129 } 130 static int callback8(int[] callbackArgs) { 131 int address = callbackArgs[0]; 133 Object object = ObjectMap.get(new Integer (address)); 134 if (object == null) return COM.E_FAIL; 135 int[] args = new int[callbackArgs.length - 1]; 136 System.arraycopy(callbackArgs, 1, args, 0, args.length); 137 return ((COMObject) object).method8(args); 138 } 139 static int callback9(int[] callbackArgs) { 140 int address = callbackArgs[0]; 142 Object object = ObjectMap.get(new Integer (address)); 143 if (object == null) return COM.E_FAIL; 144 int[] args = new int[callbackArgs.length - 1]; 145 System.arraycopy(callbackArgs, 1, args, 0, args.length); 146 return ((COMObject) object).method9(args); 147 } 148 static int callback10(int[] callbackArgs) { 149 int address = callbackArgs[0]; 151 Object object = ObjectMap.get(new Integer (address)); 152 if (object == null) return COM.E_FAIL; 153 int[] args = new int[callbackArgs.length - 1]; 154 System.arraycopy(callbackArgs, 1, args, 0, args.length); 155 return ((COMObject) object).method10(args); 156 } 157 static int callback11(int[] callbackArgs) { 158 int address = callbackArgs[0]; 160 Object object = ObjectMap.get(new Integer (address)); 161 if (object == null) return COM.E_FAIL; 162 int[] args = new int[callbackArgs.length - 1]; 163 System.arraycopy(callbackArgs, 1, args, 0, args.length); 164 return ((COMObject) object).method11(args); 165 } 166 static int callback12(int[] callbackArgs) { 167 int address = callbackArgs[0]; 169 Object object = ObjectMap.get(new Integer (address)); 170 if (object == null) return COM.E_FAIL; 171 int[] args = new int[callbackArgs.length - 1]; 172 System.arraycopy(callbackArgs, 1, args, 0, args.length); 173 return ((COMObject) object).method12(args); 174 } 175 static int callback13(int[] callbackArgs) { 176 int address = callbackArgs[0]; 178 Object object = ObjectMap.get(new Integer (address)); 179 if (object == null) return COM.E_FAIL; 180 int[] args = new int[callbackArgs.length - 1]; 181 System.arraycopy(callbackArgs, 1, args, 0, args.length); 182 return ((COMObject) object).method13(args); 183 } 184 static int callback14(int[] callbackArgs) { 185 int address = callbackArgs[0]; 187 Object object = ObjectMap.get(new Integer (address)); 188 if (object == null) return COM.E_FAIL; 189 int[] args = new int[callbackArgs.length - 1]; 190 System.arraycopy(callbackArgs, 1, args, 0, args.length); 191 return ((COMObject) object).method14(args); 192 } 193 static int callback15(int[] callbackArgs) { 194 int address = callbackArgs[0]; 196 Object object = ObjectMap.get(new Integer (address)); 197 if (object == null) return COM.E_FAIL; 198 int[] args = new int[callbackArgs.length - 1]; 199 System.arraycopy(callbackArgs, 1, args, 0, args.length); 200 return ((COMObject) object).method15(args); 201 } 202 static int callback16(int[] callbackArgs) { 203 int address = callbackArgs[0]; 205 Object object = ObjectMap.get(new Integer (address)); 206 if (object == null) return COM.E_FAIL; 207 int[] args = new int[callbackArgs.length - 1]; 208 System.arraycopy(callbackArgs, 1, args, 0, args.length); 209 return ((COMObject) object).method16(args); 210 } 211 static int callback17(int[] callbackArgs) { 212 int address = callbackArgs[0]; 214 Object object = ObjectMap.get(new Integer (address)); 215 if (object == null) return COM.E_FAIL; 216 int[] args = new int[callbackArgs.length - 1]; 217 System.arraycopy(callbackArgs, 1, args, 0, args.length); 218 return ((COMObject) object).method17(args); 219 } 220 static int callback18(int[] callbackArgs) { 221 int address = callbackArgs[0]; 223 Object object = ObjectMap.get(new Integer (address)); 224 if (object == null) return COM.E_FAIL; 225 int[] args = new int[callbackArgs.length - 1]; 226 System.arraycopy(callbackArgs, 1, args, 0, args.length); 227 return ((COMObject) object).method18(args); 228 } 229 static int callback19(int[] callbackArgs) { 230 int address = callbackArgs[0]; 232 Object object = ObjectMap.get(new Integer (address)); 233 if (object == null) return COM.E_FAIL; 234 int[] args = new int[callbackArgs.length - 1]; 235 System.arraycopy(callbackArgs, 1, args, 0, args.length); 236 return ((COMObject) object).method19(args); 237 } 238 static int callback20(int[] callbackArgs) { 239 int address = callbackArgs[0]; 241 Object object = ObjectMap.get(new Integer (address)); 242 if (object == null) return COM.E_FAIL; 243 int[] args = new int[callbackArgs.length - 1]; 244 System.arraycopy(callbackArgs, 1, args, 0, args.length); 245 return ((COMObject) object).method20(args); 246 } 247 static int callback21(int[] callbackArgs) { 248 int address = callbackArgs[0]; 250 Object object = ObjectMap.get(new Integer (address)); 251 if (object == null) return COM.E_FAIL; 252 int[] args = new int[callbackArgs.length - 1]; 253 System.arraycopy(callbackArgs, 1, args, 0, args.length); 254 return ((COMObject) object).method21(args); 255 } 256 static int callback22(int[] callbackArgs) { 257 int address = callbackArgs[0]; 259 Object object = ObjectMap.get(new Integer (address)); 260 if (object == null) return COM.E_FAIL; 261 int[] args = new int[callbackArgs.length - 1]; 262 System.arraycopy(callbackArgs, 1, args, 0, args.length); 263 return ((COMObject) object).method22(args); 264 } 265 static int callback23(int[] callbackArgs) { 266 int address = callbackArgs[0]; 268 Object object = ObjectMap.get(new Integer (address)); 269 if (object == null) return COM.E_FAIL; 270 int[] args = new int[callbackArgs.length - 1]; 271 System.arraycopy(callbackArgs, 1, args, 0, args.length); 272 return ((COMObject) object).method23(args); 273 } 274 static int callback24(int[] callbackArgs) { 275 int address = callbackArgs[0]; 277 Object object = ObjectMap.get(new Integer (address)); 278 if (object == null) return COM.E_FAIL; 279 int[] args = new int[callbackArgs.length - 1]; 280 System.arraycopy(callbackArgs, 1, args, 0, args.length); 281 return ((COMObject) object).method24(args); 282 } 283 static int callback25(int[] callbackArgs) { 284 int address = callbackArgs[0]; 286 Object object = ObjectMap.get(new Integer (address)); 287 if (object == null) return COM.E_FAIL; 288 int[] args = new int[callbackArgs.length - 1]; 289 System.arraycopy(callbackArgs, 1, args, 0, args.length); 290 return ((COMObject) object).method25(args); 291 } 292 static int callback26(int[] callbackArgs) { 293 int address = callbackArgs[0]; 295 Object object = ObjectMap.get(new Integer (address)); 296 if (object == null) return COM.E_FAIL; 297 int[] args = new int[callbackArgs.length - 1]; 298 System.arraycopy(callbackArgs, 1, args, 0, args.length); 299 return ((COMObject) object).method26(args); 300 } 301 static int callback27(int[] callbackArgs) { 302 int address = callbackArgs[0]; 304 Object object = ObjectMap.get(new Integer (address)); 305 if (object == null) return COM.E_FAIL; 306 int[] args = new int[callbackArgs.length - 1]; 307 System.arraycopy(callbackArgs, 1, args, 0, args.length); 308 return ((COMObject) object).method27(args); 309 } 310 static int callback28(int[] callbackArgs) { 311 int address = callbackArgs[0]; 313 Object object = ObjectMap.get(new Integer (address)); 314 if (object == null) return COM.E_FAIL; 315 int[] args = new int[callbackArgs.length - 1]; 316 System.arraycopy(callbackArgs, 1, args, 0, args.length); 317 return ((COMObject) object).method28(args); 318 } 319 static int callback29(int[] callbackArgs) { 320 int address = callbackArgs[0]; 322 Object object = ObjectMap.get(new Integer (address)); 323 if (object == null) return COM.E_FAIL; 324 int[] args = new int[callbackArgs.length - 1]; 325 System.arraycopy(callbackArgs, 1, args, 0, args.length); 326 return ((COMObject) object).method29(args); 327 } 328 static int callback30(int[] callbackArgs) { 329 int address = callbackArgs[0]; 331 Object object = ObjectMap.get(new Integer (address)); 332 if (object == null) return COM.E_FAIL; 333 int[] args = new int[callbackArgs.length - 1]; 334 System.arraycopy(callbackArgs, 1, args, 0, args.length); 335 return ((COMObject) object).method30(args); 336 } 337 static int callback31(int[] callbackArgs) { 338 int address = callbackArgs[0]; 340 Object object = ObjectMap.get(new Integer (address)); 341 if (object == null) return COM.E_FAIL; 342 int[] args = new int[callbackArgs.length - 1]; 343 System.arraycopy(callbackArgs, 1, args, 0, args.length); 344 return ((COMObject) object).method31(args); 345 } 346 static int callback32(int[] callbackArgs) { 347 int address = callbackArgs[0]; 349 Object object = ObjectMap.get(new Integer (address)); 350 if (object == null) return COM.E_FAIL; 351 int[] args = new int[callbackArgs.length - 1]; 352 System.arraycopy(callbackArgs, 1, args, 0, args.length); 353 return ((COMObject) object).method32(args); 354 } 355 static int callback33(int[] callbackArgs) { 356 int address = callbackArgs[0]; 358 Object object = ObjectMap.get(new Integer (address)); 359 if (object == null) return COM.E_FAIL; 360 int[] args = new int[callbackArgs.length - 1]; 361 System.arraycopy(callbackArgs, 1, args, 0, args.length); 362 return ((COMObject) object).method33(args); 363 } 364 static int callback34(int[] callbackArgs) { 365 int address = callbackArgs[0]; 367 Object object = ObjectMap.get(new Integer (address)); 368 if (object == null) return COM.E_FAIL; 369 int[] args = new int[callbackArgs.length - 1]; 370 System.arraycopy(callbackArgs, 1, args, 0, args.length); 371 return ((COMObject) object).method34(args); 372 } 373 static int callback35(int[] callbackArgs) { 374 int address = callbackArgs[0]; 376 Object object = ObjectMap.get(new Integer (address)); 377 if (object == null) return COM.E_FAIL; 378 int[] args = new int[callbackArgs.length - 1]; 379 System.arraycopy(callbackArgs, 1, args, 0, args.length); 380 return ((COMObject) object).method35(args); 381 } 382 static int callback36(int[] callbackArgs) { 383 int address = callbackArgs[0]; 385 Object object = ObjectMap.get(new Integer (address)); 386 if (object == null) return COM.E_FAIL; 387 int[] args = new int[callbackArgs.length - 1]; 388 System.arraycopy(callbackArgs, 1, args, 0, args.length); 389 return ((COMObject) object).method36(args); 390 } 391 static int callback37(int[] callbackArgs) { 392 int address = callbackArgs[0]; 394 Object object = ObjectMap.get(new Integer (address)); 395 if (object == null) return COM.E_FAIL; 396 int[] args = new int[callbackArgs.length - 1]; 397 System.arraycopy(callbackArgs, 1, args, 0, args.length); 398 return ((COMObject) object).method37(args); 399 } 400 static int callback38(int[] callbackArgs) { 401 int address = callbackArgs[0]; 403 Object object = ObjectMap.get(new Integer (address)); 404 if (object == null) return COM.E_FAIL; 405 int[] args = new int[callbackArgs.length - 1]; 406 System.arraycopy(callbackArgs, 1, args, 0, args.length); 407 return ((COMObject) object).method38(args); 408 } 409 static int callback39(int[] callbackArgs) { 410 int address = callbackArgs[0]; 412 Object object = ObjectMap.get(new Integer (address)); 413 if (object == null) return COM.E_FAIL; 414 int[] args = new int[callbackArgs.length - 1]; 415 System.arraycopy(callbackArgs, 1, args, 0, args.length); 416 return ((COMObject) object).method39(args); 417 } 418 static int callback40(int[] callbackArgs) { 419 int address = callbackArgs[0]; 421 Object object = ObjectMap.get(new Integer (address)); 422 if (object == null) return COM.E_FAIL; 423 int[] args = new int[callbackArgs.length - 1]; 424 System.arraycopy(callbackArgs, 1, args, 0, args.length); 425 return ((COMObject) object).method40(args); 426 } 427 static int callback41(int[] callbackArgs) { 428 int address = callbackArgs[0]; 430 Object object = ObjectMap.get(new Integer (address)); 431 if (object == null) return COM.E_FAIL; 432 int[] args = new int[callbackArgs.length - 1]; 433 System.arraycopy(callbackArgs, 1, args, 0, args.length); 434 return ((COMObject) object).method41(args); 435 } 436 static int callback42(int[] callbackArgs) { 437 int address = callbackArgs[0]; 439 Object object = ObjectMap.get(new Integer (address)); 440 if (object == null) return COM.E_FAIL; 441 int[] args = new int[callbackArgs.length - 1]; 442 System.arraycopy(callbackArgs, 1, args, 0, args.length); 443 return ((COMObject) object).method42(args); 444 } 445 static int callback43(int[] callbackArgs) { 446 int address = callbackArgs[0]; 448 Object object = ObjectMap.get(new Integer (address)); 449 if (object == null) return COM.E_FAIL; 450 int[] args = new int[callbackArgs.length - 1]; 451 System.arraycopy(callbackArgs, 1, args, 0, args.length); 452 return ((COMObject) object).method43(args); 453 } 454 static int callback44(int[] callbackArgs) { 455 int address = callbackArgs[0]; 457 Object object = ObjectMap.get(new Integer (address)); 458 if (object == null) return COM.E_FAIL; 459 int[] args = new int[callbackArgs.length - 1]; 460 System.arraycopy(callbackArgs, 1, args, 0, args.length); 461 return ((COMObject) object).method44(args); 462 } 463 static int callback45(int[] callbackArgs) { 464 int address = callbackArgs[0]; 466 Object object = ObjectMap.get(new Integer (address)); 467 if (object == null) return COM.E_FAIL; 468 int[] args = new int[callbackArgs.length - 1]; 469 System.arraycopy(callbackArgs, 1, args, 0, args.length); 470 return ((COMObject) object).method45(args); 471 } 472 static int callback46(int[] callbackArgs) { 473 int address = callbackArgs[0]; 475 Object object = ObjectMap.get(new Integer (address)); 476 if (object == null) return COM.E_FAIL; 477 int[] args = new int[callbackArgs.length - 1]; 478 System.arraycopy(callbackArgs, 1, args, 0, args.length); 479 return ((COMObject) object).method46(args); 480 } 481 static int callback47(int[] callbackArgs) { 482 int address = callbackArgs[0]; 484 Object object = ObjectMap.get(new Integer (address)); 485 if (object == null) return COM.E_FAIL; 486 int[] args = new int[callbackArgs.length - 1]; 487 System.arraycopy(callbackArgs, 1, args, 0, args.length); 488 return ((COMObject) object).method47(args); 489 } 490 static int callback48(int[] callbackArgs) { 491 int address = callbackArgs[0]; 493 Object object = ObjectMap.get(new Integer (address)); 494 if (object == null) return COM.E_FAIL; 495 int[] args = new int[callbackArgs.length - 1]; 496 System.arraycopy(callbackArgs, 1, args, 0, args.length); 497 return ((COMObject) object).method48(args); 498 } 499 static int callback49(int[] callbackArgs) { 500 int address = callbackArgs[0]; 502 Object object = ObjectMap.get(new Integer (address)); 503 if (object == null) return COM.E_FAIL; 504 int[] args = new int[callbackArgs.length - 1]; 505 System.arraycopy(callbackArgs, 1, args, 0, args.length); 506 return ((COMObject) object).method49(args); 507 } 508 static int callback50(int[] callbackArgs) { 509 int address = callbackArgs[0]; 511 Object object = ObjectMap.get(new Integer (address)); 512 if (object == null) return COM.E_FAIL; 513 int[] args = new int[callbackArgs.length - 1]; 514 System.arraycopy(callbackArgs, 1, args, 0, args.length); 515 return ((COMObject) object).method50(args); 516 } 517 static int callback51(int[] callbackArgs) { 518 int address = callbackArgs[0]; 520 Object object = ObjectMap.get(new Integer (address)); 521 if (object == null) return COM.E_FAIL; 522 int[] args = new int[callbackArgs.length - 1]; 523 System.arraycopy(callbackArgs, 1, args, 0, args.length); 524 return ((COMObject) object).method51(args); 525 } 526 static int callback52(int[] callbackArgs) { 527 int address = callbackArgs[0]; 529 Object object = ObjectMap.get(new Integer (address)); 530 if (object == null) return COM.E_FAIL; 531 int[] args = new int[callbackArgs.length - 1]; 532 System.arraycopy(callbackArgs, 1, args, 0, args.length); 533 return ((COMObject) object).method52(args); 534 } 535 static int callback53(int[] callbackArgs) { 536 int address = callbackArgs[0]; 538 Object object = ObjectMap.get(new Integer (address)); 539 if (object == null) return COM.E_FAIL; 540 int[] args = new int[callbackArgs.length - 1]; 541 System.arraycopy(callbackArgs, 1, args, 0, args.length); 542 return ((COMObject) object).method53(args); 543 } 544 static int callback54(int[] callbackArgs) { 545 int address = callbackArgs[0]; 547 Object object = ObjectMap.get(new Integer (address)); 548 if (object == null) return COM.E_FAIL; 549 int[] args = new int[callbackArgs.length - 1]; 550 System.arraycopy(callbackArgs, 1, args, 0, args.length); 551 return ((COMObject) object).method54(args); 552 } 553 static int callback55(int[] callbackArgs) { 554 int address = callbackArgs[0]; 556 Object object = ObjectMap.get(new Integer (address)); 557 if (object == null) return COM.E_FAIL; 558 int[] args = new int[callbackArgs.length - 1]; 559 System.arraycopy(callbackArgs, 1, args, 0, args.length); 560 return ((COMObject) object).method55(args); 561 } 562 static int callback56(int[] callbackArgs) { 563 int address = callbackArgs[0]; 565 Object object = ObjectMap.get(new Integer (address)); 566 if (object == null) return COM.E_FAIL; 567 int[] args = new int[callbackArgs.length - 1]; 568 System.arraycopy(callbackArgs, 1, args, 0, args.length); 569 return ((COMObject) object).method56(args); 570 } 571 static int callback57(int[] callbackArgs) { 572 int address = callbackArgs[0]; 574 Object object = ObjectMap.get(new Integer (address)); 575 if (object == null) return COM.E_FAIL; 576 int[] args = new int[callbackArgs.length - 1]; 577 System.arraycopy(callbackArgs, 1, args, 0, args.length); 578 return ((COMObject) object).method57(args); 579 } 580 static int callback58(int[] callbackArgs) { 581 int address = callbackArgs[0]; 583 Object object = ObjectMap.get(new Integer (address)); 584 if (object == null) return COM.E_FAIL; 585 int[] args = new int[callbackArgs.length - 1]; 586 System.arraycopy(callbackArgs, 1, args, 0, args.length); 587 return ((COMObject) object).method58(args); 588 } 589 static int callback59(int[] callbackArgs) { 590 int address = callbackArgs[0]; 592 Object object = ObjectMap.get(new Integer (address)); 593 if (object == null) return COM.E_FAIL; 594 int[] args = new int[callbackArgs.length - 1]; 595 System.arraycopy(callbackArgs, 1, args, 0, args.length); 596 return ((COMObject) object).method59(args); 597 } 598 static int callback60(int[] callbackArgs) { 599 int address = callbackArgs[0]; 601 Object object = ObjectMap.get(new Integer (address)); 602 if (object == null) return COM.E_FAIL; 603 int[] args = new int[callbackArgs.length - 1]; 604 System.arraycopy(callbackArgs, 1, args, 0, args.length); 605 return ((COMObject) object).method60(args); 606 } 607 static int callback61(int[] callbackArgs) { 608 int address = callbackArgs[0]; 610 Object object = ObjectMap.get(new Integer (address)); 611 if (object == null) return COM.E_FAIL; 612 int[] args = new int[callbackArgs.length - 1]; 613 System.arraycopy(callbackArgs, 1, args, 0, args.length); 614 return ((COMObject) object).method61(args); 615 } 616 static int callback62(int[] callbackArgs) { 617 int address = callbackArgs[0]; 619 Object object = ObjectMap.get(new Integer (address)); 620 if (object == null) return COM.E_FAIL; 621 int[] args = new int[callbackArgs.length - 1]; 622 System.arraycopy(callbackArgs, 1, args, 0, args.length); 623 return ((COMObject) object).method62(args); 624 } 625 static int callback63(int[] callbackArgs) { 626 int address = callbackArgs[0]; 628 Object object = ObjectMap.get(new Integer (address)); 629 if (object == null) return COM.E_FAIL; 630 int[] args = new int[callbackArgs.length - 1]; 631 System.arraycopy(callbackArgs, 1, args, 0, args.length); 632 return ((COMObject) object).method63(args); 633 } 634 static int callback64(int[] callbackArgs) { 635 int address = callbackArgs[0]; 637 Object object = ObjectMap.get(new Integer (address)); 638 if (object == null) return COM.E_FAIL; 639 int[] args = new int[callbackArgs.length - 1]; 640 System.arraycopy(callbackArgs, 1, args, 0, args.length); 641 return ((COMObject) object).method64(args); 642 } 643 static int callback65(int[] callbackArgs) { 644 int address = callbackArgs[0]; 646 Object object = ObjectMap.get(new Integer (address)); 647 if (object == null) return COM.E_FAIL; 648 int[] args = new int[callbackArgs.length - 1]; 649 System.arraycopy(callbackArgs, 1, args, 0, args.length); 650 return ((COMObject) object).method65(args); 651 } 652 static int callback66(int[] callbackArgs) { 653 int address = callbackArgs[0]; 655 Object object = ObjectMap.get(new Integer (address)); 656 &nbs
|