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 if (object == null) return COM.E_FAIL; 657 int[] args = new int[callbackArgs.length - 1]; 658 System.arraycopy(callbackArgs, 1, args, 0, args.length); 659 return ((COMObject) object).method66(args); 660 } 661 static int callback67(int[] callbackArgs) { 662 int address = callbackArgs[0]; 664 Object object = ObjectMap.get(new Integer (address)); 665 if (object == null) return COM.E_FAIL; 666 int[] args = new int[callbackArgs.length - 1]; 667 System.arraycopy(callbackArgs, 1, args, 0, args.length); 668 return ((COMObject) object).method67(args); 669 } 670 static int callback68(int[] callbackArgs) { 671 int address = callbackArgs[0]; 673 Object object = ObjectMap.get(new Integer (address)); 674 if (object == null) return COM.E_FAIL; 675 int[] args = new int[callbackArgs.length - 1]; 676 System.arraycopy(callbackArgs, 1, args, 0, args.length); 677 return ((COMObject) object).method68(args); 678 } 679 static int callback69(int[] callbackArgs) { 680 int address = callbackArgs[0]; 682 Object object = ObjectMap.get(new Integer (address)); 683 if (object == null) return COM.E_FAIL; 684 int[] args = new int[callbackArgs.length - 1]; 685 System.arraycopy(callbackArgs, 1, args, 0, args.length); 686 return ((COMObject) object).method69(args); 687 } 688 static int callback70(int[] callbackArgs) { 689 int address = callbackArgs[0]; 691 Object object = ObjectMap.get(new Integer (address)); 692 if (object == null) return COM.E_FAIL; 693 int[] args = new int[callbackArgs.length - 1]; 694 System.arraycopy(callbackArgs, 1, args, 0, args.length); 695 return ((COMObject) object).method70(args); 696 } 697 static int callback71(int[] callbackArgs) { 698 int address = callbackArgs[0]; 700 Object object = ObjectMap.get(new Integer (address)); 701 if (object == null) return COM.E_FAIL; 702 int[] args = new int[callbackArgs.length - 1]; 703 System.arraycopy(callbackArgs, 1, args, 0, args.length); 704 return ((COMObject) object).method71(args); 705 } 706 static int callback72(int[] callbackArgs) { 707 int address = callbackArgs[0]; 709 Object object = ObjectMap.get(new Integer (address)); 710 if (object == null) return COM.E_FAIL; 711 int[] args = new int[callbackArgs.length - 1]; 712 System.arraycopy(callbackArgs, 1, args, 0, args.length); 713 return ((COMObject) object).method72(args); 714 } 715 static int callback73(int[] callbackArgs) { 716 int address = callbackArgs[0]; 718 Object object = ObjectMap.get(new Integer (address)); 719 if (object == null) return COM.E_FAIL; 720 int[] args = new int[callbackArgs.length - 1]; 721 System.arraycopy(callbackArgs, 1, args, 0, args.length); 722 return ((COMObject) object).method73(args); 723 } 724 static int callback74(int[] callbackArgs) { 725 int address = callbackArgs[0]; 727 Object object = ObjectMap.get(new Integer (address)); 728 if (object == null) return COM.E_FAIL; 729 int[] args = new int[callbackArgs.length - 1]; 730 System.arraycopy(callbackArgs, 1, args, 0, args.length); 731 return ((COMObject) object).method74(args); 732 } 733 static int callback75(int[] callbackArgs) { 734 int address = callbackArgs[0]; 736 Object object = ObjectMap.get(new Integer (address)); 737 if (object == null) return COM.E_FAIL; 738 int[] args = new int[callbackArgs.length - 1]; 739 System.arraycopy(callbackArgs, 1, args, 0, args.length); 740 return ((COMObject) object).method75(args); 741 } 742 static int callback76(int[] callbackArgs) { 743 int address = callbackArgs[0]; 745 Object object = ObjectMap.get(new Integer (address)); 746 if (object == null) return COM.E_FAIL; 747 int[] args = new int[callbackArgs.length - 1]; 748 System.arraycopy(callbackArgs, 1, args, 0, args.length); 749 return ((COMObject) object).method76(args); 750 } 751 static int callback77(int[] callbackArgs) { 752 int address = callbackArgs[0]; 754 Object object = ObjectMap.get(new Integer (address)); 755 if (object == null) return COM.E_FAIL; 756 int[] args = new int[callbackArgs.length - 1]; 757 System.arraycopy(callbackArgs, 1, args, 0, args.length); 758 return ((COMObject) object).method77(args); 759 } 760 static int callback78(int[] callbackArgs) { 761 int address = callbackArgs[0]; 763 Object object = ObjectMap.get(new Integer (address)); 764 if (object == null) return COM.E_FAIL; 765 int[] args = new int[callbackArgs.length - 1]; 766 System.arraycopy(callbackArgs, 1, args, 0, args.length); 767 return ((COMObject) object).method78(args); 768 } 769 static int callback79(int[] callbackArgs) { 770 int address = callbackArgs[0]; 772 Object object = ObjectMap.get(new Integer (address)); 773 if (object == null) return COM.E_FAIL; 774 int[] args = new int[callbackArgs.length - 1]; 775 System.arraycopy(callbackArgs, 1, args, 0, args.length); 776 return ((COMObject) object).method79(args); 777 } 778 public void dispose() { 779 int[] pVtable = new int[1]; 781 OS.MoveMemory(pVtable, ppVtable, 4); 782 OS.GlobalFree(pVtable[0]); 783 OS.GlobalFree(ppVtable); 784 785 ObjectMap.remove(new Integer (ppVtable)); 787 788 ppVtable = 0; 789 } 790 public int getAddress () { 791 return ppVtable; 792 } 793 public int method0(int[] args) { 794 return COM.E_NOTIMPL; 795 } 796 public int method1(int[] args) { 797 return COM.E_NOTIMPL; 798 } 799 public int method2(int[] args) { 800 return COM.E_NOTIMPL; 801 } 802 public int method3(int[] args) { 803 return COM.E_NOTIMPL; 804 } 805 public int method4(int[] args) { 806 return COM.E_NOTIMPL; 807 } 808 public int method5(int[] args) { 809 return COM.E_NOTIMPL; 810 } 811 public int method6(int[] args) { 812 return COM.E_NOTIMPL; 813 } 814 public int method7(int[] args) { 815 return COM.E_NOTIMPL; 816 } 817 public int method8(int[] args) { 818 return COM.E_NOTIMPL; 819 } 820 public int method9(int[] args) { 821 return COM.E_NOTIMPL; 822 } 823 public int method10(int[] args) { 824 return COM.E_NOTIMPL; 825 } 826 public int method11(int[] args) { 827 return COM.E_NOTIMPL; 828 } 829 public int method12(int[] args) { 830 return COM.E_NOTIMPL; 831 } 832 public int method13(int[] args) { 833 return COM.E_NOTIMPL; 834 } 835 public int method14(int[] args) { 836 return COM.E_NOTIMPL; 837 } 838 public int method15(int[] args) { 839 return COM.E_NOTIMPL; 840 } 841 public int method16(int[] args) { 842 return COM.E_NOTIMPL; 843 } 844 public int method17(int[] args) { 845 return COM.E_NOTIMPL; 846 } 847 public int method18(int[] args) { 848 return COM.E_NOTIMPL; 849 } 850 public int method19(int[] args) { 851 return COM.E_NOTIMPL; 852 } 853 public int method20(int[] args) { 854 return COM.E_NOTIMPL; 855 } 856 public int method21(int[] args) { 857 return COM.E_NOTIMPL; 858 } 859 public int method22(int[] args) { 860 return COM.E_NOTIMPL; 861 } 862 public int method23(int[] args) { 863 return COM.E_NOTIMPL; 864 } 865 public int method24(int[] args) { 866 return COM.E_NOTIMPL; 867 } 868 public int method25(int[] args) { 869 return COM.E_NOTIMPL; 870 } 871 public int method26(int[] args) { 872 return COM.E_NOTIMPL; 873 } 874 public int method27(int[] args) { 875 return COM.E_NOTIMPL; 876 } 877 public int method28(int[] args) { 878 return COM.E_NOTIMPL; 879 } 880 public int method29(int[] args) { 881 return COM.E_NOTIMPL; 882 } 883 public int method30(int[] args) { 884 return COM.E_NOTIMPL; 885 } 886 public int method31(int[] args) { 887 return COM.E_NOTIMPL; 888 } 889 public int method32(int[] args) { 890 return COM.E_NOTIMPL; 891 } 892 public int method33(int[] args) { 893 return COM.E_NOTIMPL; 894 } 895 public int method34(int[] args) { 896 return COM.E_NOTIMPL; 897 } 898 public int method35(int[] args) { 899 return COM.E_NOTIMPL; 900 } 901 public int method36(int[] args) { 902 return COM.E_NOTIMPL; 903 } 904 public int method37(int[] args) { 905 return COM.E_NOTIMPL; 906 } 907 public int method38(int[] args) { 908 return COM.E_NOTIMPL; 909 } 910 public int method39(int[] args) { 911 return COM.E_NOTIMPL; 912 } 913 public int method40(int[] args) { 914 return COM.E_NOTIMPL; 915 } 916 public int method41(int[] args) { 917 return COM.E_NOTIMPL; 918 } 919 public int method42(int[] args) { 920 return COM.E_NOTIMPL; 921 } 922 public int method43(int[] args) { 923 return COM.E_NOTIMPL; 924 } 925 public int method44(int[] args) { 926 return COM.E_NOTIMPL; 927 } 928 public int method45(int[] args) { 929 return COM.E_NOTIMPL; 930 } 931 public int method46(int[] args) { 932 return COM.E_NOTIMPL; 933 } 934 public int method47(int[] args) { 935 return COM.E_NOTIMPL; 936 } 937 public int method48(int[] args) { 938 return COM.E_NOTIMPL; 939 } 940 public int method49(int[] args) { 941 return COM.E_NOTIMPL; 942 } 943 public int method50(int[] args) { 944 return COM.E_NOTIMPL; 945 } 946 public int method51(int[] args) { 947 return COM.E_NOTIMPL; 948 } 949 public int method52(int[] args) { 950 return COM.E_NOTIMPL; 951 } 952 public int method53(int[] args) { 953 return COM.E_NOTIMPL; 954 } 955 public int method54(int[] args) { 956 return COM.E_NOTIMPL; 957 } 958 public int method55(int[] args) { 959 return COM.E_NOTIMPL; 960 } 961 public int method56(int[] args) { 962 return COM.E_NOTIMPL; 963 } 964 public int method57(int[] args) { 965 return COM.E_NOTIMPL; 966 } 967 public int method58(int[] args) { 968 return COM.E_NOTIMPL; 969 } 970 public int method59(int[] args) { 971 return COM.E_NOTIMPL; 972 } 973 public int method60(int[] args) { 974 return COM.E_NOTIMPL; 975 } 976 public int method61(int[] args) { 977 return COM.E_NOTIMPL; 978 } 979 public int method62(int[] args) { 980 return COM.E_NOTIMPL; 981 } 982 public int method63(int[] args) { 983 return COM.E_NOTIMPL; 984 } 985 public int method64(int[] args) { 986 return COM.E_NOTIMPL; 987 } 988 public int method65(int[] args) { 989 return COM.E_NOTIMPL; 990 } 991 public int method66(int[] args) { 992 return COM.E_NOTIMPL; 993 } 994 public int method67(int[] args) { 995 return COM.E_NOTIMPL; 996 } 997 public int method68(int[] args) { 998 return COM.E_NOTIMPL; 999 } 1000public int method69(int[] args) { 1001 return COM.E_NOTIMPL; 1002} 1003public int method70(int[] args) { 1004 return COM.E_NOTIMPL; 1005} 1006public int method71(int[] args) { 1007 return COM.E_NOTIMPL; 1008} 1009public int method72(int[] args) { 1010 return COM.E_NOTIMPL; 1011} 1012public int method73(int[] args) { 1013 return COM.E_NOTIMPL; 1014} 1015public int method74(int[] args) { 1016 return COM.E_NOTIMPL; 1017} 1018public int method75(int[] args) { 1019 return COM.E_NOTIMPL; 1020} 1021public int method76(int[] args) { 1022 return COM.E_NOTIMPL; 1023} 1024public int method77(int[] args) { 1025 return COM.E_NOTIMPL; 1026} 1027public int method78(int[] args) { 1028 return COM.E_NOTIMPL; 1029} 1030public int method79(int[] args) { 1031 return COM.E_NOTIMPL; 1032} 1033 1034} 1035 | Popular Tags |