|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.moesol.bindings.platform_sdk.component_services.COM
public class COM
Field Summary | |
---|---|
static int |
CLSCTX_ALL
See CoCreateInstance |
static int |
CLSCTX_DISABLE_AAA
See CoCreateInstance |
static int |
CLSCTX_ENABLE_AAA
See CoCreateInstance |
static int |
CLSCTX_ENABLE_CODE_DOWNLOAD
See CoCreateInstance |
static int |
CLSCTX_FROM_DEFAULT_CONTEXT
See CoCreateInstance |
static int |
CLSCTX_INPROC
See CoCreateInstance |
static int |
CLSCTX_INPROC_HANDLER
See CoCreateInstance |
static int |
CLSCTX_INPROC_HANDLER16
See CoCreateInstance |
static int |
CLSCTX_INPROC_SERVER
See CoCreateInstance |
static int |
CLSCTX_INPROC_SERVER16
See CoCreateInstance |
static int |
CLSCTX_LOCAL
See CoCreateInstance |
static int |
CLSCTX_LOCAL_SERVER
See CoCreateInstance |
static int |
CLSCTX_NO_CODE_DOWNLOAD
See CoCreateInstance |
static int |
CLSCTX_NO_CUSTOM_MARSHAL
See CoCreateInstance |
static int |
CLSCTX_NO_FAILURE_LOG
See CoCreateInstance |
static int |
CLSCTX_REMOTE_SERVER
See CoCreateInstance |
static int |
CLSCTX_RESERVED1
See CoCreateInstance, apparently CLSCTX_INPROC_SERVERX86 was deprecated |
static int |
CLSCTX_RESERVED2
See CoCreateInstance, apparently CLSCTX_INPROC_HANDLERX86 was deprecated |
static int |
CLSCTX_RESERVED3
See CoCreateInstance, apparently CLSCTX_ESERVER_HANDLER was deprecated |
static int |
CLSCTX_RESERVED4
See CoCreateInstance |
static int |
CLSCTX_RESERVED5
See CoCreateInstance |
static int |
CLSCTX_SERVER
See CoCreateInstance |
static String |
ThreadingModel_Apartment
See InprocServer32 in MSDN |
static String |
ThreadingModel_Both
See InprocServer32 in MSDN |
static String |
ThreadingModel_Free
See InprocServer32 in MSDN |
static String |
ThreadingModel_Neutral
See InprocServer32 in MSDN |
Constructor Summary | |
---|---|
COM()
|
Method Summary | |
---|---|
static int |
addListener(IUnknown source,
IUnknown listener,
GUID diid)
Adds a COM event listener to source. |
static GUID |
CoCreateGuid()
|
static int |
CoCreateInstance(GUID rclsid,
IUnknown pUnkOuter,
int dwClsContext,
Object[] out_iface)
See CoCreateInstance |
static void |
disableApartmentChecking(IUnknown unk)
Turn off apartment thread checking for unk. |
static GUID |
extractIID(IUnknown unk)
Get the IID of the most derived interface that unk
represents. |
static void |
gc()
Call System.gc in a loop for upto one second to release all COM interfaces. |
static int |
getGenericSinkInstanceCount()
|
static int |
getUnreleasedCount()
The unreleased count is the count of all IUnknown and subclasses that have native COM interfaces attached. |
static int |
getVtableThunkCount()
|
static void |
Invoke(IDispatch callee,
int dispIdMember,
GUID riid,
int lcid,
short wFlags,
Object[] dispParams,
Object[] varResult)
|
static String |
lookupIID(GUID iid)
Return the friendly name for the IID or the String version of the IID. |
static int |
mapExceptionToHRESULT(Throwable t)
|
static int |
OleCreatePropertyFrame(HWND hwndOwner,
int x,
int y,
String lpszCaption,
IUnknown[] objects,
GUID[] lpPageClsID,
int lcid,
int dwReserved,
Object lpvReserved)
|
static int |
OleInitialize()
See OleInitialize. |
static void |
OleUninitialize()
See OleUninitialize. |
static void |
printObject(Object obj)
|
static void |
recordApartment(IUnknown unk)
Turn on apartment thread checking for unk. |
static void |
removeListener(IUnknown source,
IUnknown listener,
GUID diid)
Removes a COM event listener from source. |
static void |
wrapJavaWithNativeDispatch(IDispatch java_sink,
Object[] out_iface)
The method should probably have default access instead of public. |
static void |
wrapJavaWithVtableInterface(ComObject java_sink,
Object[] out_iface)
Note that tlb2java should auto-wrap when a java interface is passed in and it is not vtable based! Also, with Reverse COM QueryInterface does the same thing as this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CLSCTX_INPROC_SERVER
public static final int CLSCTX_INPROC_HANDLER
public static final int CLSCTX_LOCAL_SERVER
public static final int CLSCTX_INPROC_SERVER16
public static final int CLSCTX_REMOTE_SERVER
public static final int CLSCTX_INPROC_HANDLER16
public static final int CLSCTX_RESERVED1
public static final int CLSCTX_RESERVED2
public static final int CLSCTX_RESERVED3
public static final int CLSCTX_RESERVED4
public static final int CLSCTX_NO_CODE_DOWNLOAD
public static final int CLSCTX_RESERVED5
public static final int CLSCTX_NO_CUSTOM_MARSHAL
public static final int CLSCTX_ENABLE_CODE_DOWNLOAD
public static final int CLSCTX_NO_FAILURE_LOG
public static final int CLSCTX_DISABLE_AAA
public static final int CLSCTX_ENABLE_AAA
public static final int CLSCTX_FROM_DEFAULT_CONTEXT
public static final int CLSCTX_INPROC
public static final int CLSCTX_ALL
public static final int CLSCTX_SERVER
public static final int CLSCTX_LOCAL
public static final String ThreadingModel_Apartment
public static final String ThreadingModel_Both
public static final String ThreadingModel_Free
public static final String ThreadingModel_Neutral
Constructor Detail |
---|
public COM()
Method Detail |
---|
public static int addListener(IUnknown source, IUnknown listener, GUID diid)
source
- listener
- diid
- public static void removeListener(IUnknown source, IUnknown listener, GUID diid)
source
- listener
- diid
- public static void wrapJavaWithNativeDispatch(IDispatch java_sink, Object[] out_iface)
java_sink
- out_iface
- public static void wrapJavaWithVtableInterface(ComObject java_sink, Object[] out_iface)
public static String lookupIID(GUID iid)
iid
-
public static int CoCreateInstance(GUID rclsid, IUnknown pUnkOuter, int dwClsContext, Object[] out_iface)
rclsid
- pUnkOuter
- dwClsContext
- out_iface
-
public static GUID CoCreateGuid()
public static int OleCreatePropertyFrame(HWND hwndOwner, int x, int y, String lpszCaption, IUnknown[] objects, GUID[] lpPageClsID, int lcid, int dwReserved, Object lpvReserved)
public static void disableApartmentChecking(IUnknown unk)
unk
- public static void recordApartment(IUnknown unk)
unk
- public static int OleInitialize()
OleThread
.
OleThread
public static void OleUninitialize()
OleThread
.
OleThread
public static void gc()
public static GUID extractIID(IUnknown unk)
unk
represents. Used in the unit tests to confirm QI is working correctly.
unk
-
unk
represents.public static int getUnreleasedCount()
public static int getGenericSinkInstanceCount()
public static int getVtableThunkCount()
public static int mapExceptionToHRESULT(Throwable t)
t
-
t
.public static void Invoke(IDispatch callee, int dispIdMember, GUID riid, int lcid, short wFlags, Object[] dispParams, Object[] varResult)
public static void printObject(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |