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     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     // find the object on which this call was invoked
663
int address = callbackArgs[0];
664     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
672
int address = callbackArgs[0];
673     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
681
int address = callbackArgs[0];
682     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
690
int address = callbackArgs[0];
691     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
699
int address = callbackArgs[0];
700     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
708
int address = callbackArgs[0];
709     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
717
int address = callbackArgs[0];
718     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
726
int address = callbackArgs[0];
727     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
735
int address = callbackArgs[0];
736     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
744
int address = callbackArgs[0];
745     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
753
int address = callbackArgs[0];
754     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
762
int address = callbackArgs[0];
763     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // find the object on which this call was invoked
771
int address = callbackArgs[0];
772     Object JavaDoc object = ObjectMap.get(new Integer JavaDoc(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     // free the memory for this reference
780
int[] pVtable = new int[1];
781     OS.MoveMemory(pVtable, ppVtable, 4);
782     OS.GlobalFree(pVtable[0]);
783     OS.GlobalFree(ppVtable);
784
785     // remove this ppVtable from the list
786
ObjectMap.remove(new Integer JavaDoc(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