summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/internal/ole/win32/IUnknown.java
blob: 18e2e8df436dcfa966b99b1bf260908e065de204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.eclipse.swt.internal.ole.win32;

/*
 * Licensed Materials - Property of IBM,
 * WebSphere Studio Workbench
 * (c) Copyright IBM Corp 2000
 */
public class IUnknown
{
	int address;
public IUnknown(int address) {
	this.address = address;
}
public int AddRef() {
	return COM.VtblCall(1, address);
}
public int getAddress() {
	return address;
}
public int QueryInterface(GUID riid, int ppvObject[]) {
	return COM.VtblCall(0, address, riid, ppvObject);
}
public int Release() {
	return COM.VtblCall(2, address);
}
}