01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.internal.ole.win32;
11:
12: public class IUnknown {
13: int /*long*/address;
14:
15: public IUnknown(int /*long*/address) {
16: this .address = address;
17: }
18:
19: public int AddRef() {
20: return COM.VtblCall(1, address);
21: }
22:
23: public int /*long*/getAddress() {
24: return address;
25: }
26:
27: public int QueryInterface(GUID riid, int /*long*/[] ppvObject) {
28: return COM.VtblCall(0, address, riid, ppvObject);
29: }
30:
31: public int Release() {
32: return COM.VtblCall(2, address);
33: }
34: }
|