|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUnknown
See IUnknown in MSDN
| Nested Class Summary | |
|---|---|
static class |
IUnknown.Disp
|
static class |
IUnknown.Jni
Java to COM implementation. |
| Field Summary | |
|---|---|
static GUID |
IID
IID for Unknown {00000000-0000-0000-C000-000000000046} |
static Class |
TYPELIB
|
| Method Summary | |
|---|---|
IUnknown |
QueryInterface(Class iface_class)
Call IUnknown::QueryInterface on the native COM pointer. |
void |
QueryInterface(Object[] out_iface)
Call IUnknown::QueryInterface on the native COM pointer. |
int |
Release()
Calls the native COM interfaces IUnknown::Release method and make this equivalent to NULL. |
| Field Detail |
|---|
static final Class TYPELIB
static final GUID IID
| Method Detail |
|---|
void QueryInterface(Object[] out_iface)
out_iface, so you should
pass in an array of the type of interface you want. For example,
IUnknown unknown = an_unknown_argument;
IFooInterface[] out_foo_interface = { null };
unknown.QueryInterface(out_foo_interface);
try {
out_foo_interface[0].BarMethodOnFoo();
} finally {
out_foo_interface[0].Release();
out_foo_interface[0] = null;
}
out_iface - Object array of size one to receive the new interface. The
result of the QueryInterface is placed in out_iface[0[IUnknown QueryInterface(Class iface_class)
iface_class.
IUnknown unknown = an_unknown_argument;
IFooInterface foo_interface = null;
foo_interface = (IFooInterface) unknown.QueryInterface(IFooInterface.class);
try {
foo_interface.BarMethodOnFoo();
} finally {
foo_interface.Release();
}
iface_class - Class to QueryInterface to, must have a static IID field
int Release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||