KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > ole > win32 > COMObject


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.internal.ole.win32;
12
13 import java.util.Hashtable JavaDoc;
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 JavaDoc ObjectMap = new Hashtable JavaDoc();
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); //$NON-NLS-1$
34
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 JavaDoc(ppVtable), this);
45 }
46
47 public static GUID IIDFromString(String JavaDoc lpsz) {
48     // create a null terminated array of char
49
char[] buffer = (lpsz +"\0").toCharArray();
50
51     // invoke system method
52
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     // find the object on which this call was invoked
60
int address = callbackArgs[0];
61     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
69
int address = callbackArgs[0];
70     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
78
int address = callbackArgs[0];
79     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
87
int address = callbackArgs[0];
88     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
96
int address = callbackArgs[0];
97     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
105
int address = callbackArgs[0];
106     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
114
int address = callbackArgs[0];
115     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
123
int address = callbackArgs[0];
124     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
132
int address = callbackArgs[0];
133     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
141
int address = callbackArgs[0];
142     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
150
int address = callbackArgs[0];
151     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
159
int address = callbackArgs[0];
160     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
168
int address = callbackArgs[0];
169     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
177
int address = callbackArgs[0];
178     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
186
int address = callbackArgs[0];
187     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
195
int address = callbackArgs[0];
196     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
204
int address = callbackArgs[0];
205     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
213
int address = callbackArgs[0];
214     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
222
int address = callbackArgs[0];
223     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
231
int address = callbackArgs[0];
232     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
240
int address = callbackArgs[0];
241     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
249
int address = callbackArgs[0];
250     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
258
int address = callbackArgs[0];
259     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
267
int address = callbackArgs[0];
268     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
276
int address = callbackArgs[0];
277     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
285
int address = callbackArgs[0];
286     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
294
int address = callbackArgs[0];
295     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
303
int address = callbackArgs[0];
304     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
312
int address = callbackArgs[0];
313     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
321
int address = callbackArgs[0];
322     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
330
int address = callbackArgs[0];
331     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
339
int address = callbackArgs[0];
340     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
348
int address = callbackArgs[0];
349     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
357
int address = callbackArgs[0];
358     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
366
int address = callbackArgs[0];
367     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
375
int address = callbackArgs[0];
376     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
384
int address = callbackArgs[0];
385     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
393
int address = callbackArgs[0];
394     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
402
int address = callbackArgs[0];
403     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
411
int address = callbackArgs[0];
412     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
420
int address = callbackArgs[0];
421     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
429
int address = callbackArgs[0];
430     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
438
int address = callbackArgs[0];
439     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
447
int address = callbackArgs[0];
448     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
456
int address = callbackArgs[0];
457     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
465
int address = callbackArgs[0];
466     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
474
int address = callbackArgs[0];
475     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
483
int address = callbackArgs[0];
484     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
492
int address = callbackArgs[0];
493     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
501
int address = callbackArgs[0];
502     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
510
int address = callbackArgs[0];
511     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
519
int address = callbackArgs[0];
520     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
528
int address = callbackArgs[0];
529     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
537
int address = callbackArgs[0];
538     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
546
int address = callbackArgs[0];
547     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
555
int address = callbackArgs[0];
556     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
564
int address = callbackArgs[0];
565     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
573
int address = callbackArgs[0];
574     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
582
int address = callbackArgs[0];
583     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
591
int address = callbackArgs[0];
592     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
600
int address = callbackArgs[0];
601     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
609
int address = callbackArgs[0];
610     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
618
int address = callbackArgs[0];
619     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
627
int address = callbackArgs[0];
628     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
636
int address = callbackArgs[0];
637     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
645
int address = callbackArgs[0];
646     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
654
int address = callbackArgs[0];
655     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(address));
656 &nbs