|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.comadapter.comruntimeimpl.STCComRuntimeImpl
public class STCComRuntimeImpl
Constructor Summary | |
---|---|
STCComRuntimeImpl()
|
Method Summary | |
---|---|
int |
create(java.lang.String clsidString,
java.lang.String server)
Call this method to create an instance of the COM object specified by the CLSID string and server (if DCOM component). |
void |
initialize()
Call this method to CoInitialize the current thread. |
java.lang.String |
resolveSystemErrorText(int hr)
A convenience method exposed to allow the user to get the error text for an HRESULT. |
void |
uninitialize()
Call this method to CoUninitialize the current thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public STCComRuntimeImpl()
Method Detail |
---|
public void initialize()
Call this method to CoInitialize the current thread.
initialize
in interface STCComRuntime
public void uninitialize()
Call this method to CoUninitialize the current thread.
uninitialize
in interface STCComRuntime
public int create(java.lang.String clsidString, java.lang.String server) throws STCComException
Call this method to create an instance of the COM object specified by the CLSID string and server (if DCOM component).
create
in interface STCComRuntime
clsidString
- The CLSID string of the COM object you wish to create.
Note that the component must be automation-compatible.server
- The server on which the DCOM component resides.
STCComException
- if creation of the instance fails.public java.lang.String resolveSystemErrorText(int hr)
FormatMessage
method in the Win32 API.
resolveSystemErrorText
in interface STCComRuntime
hr
- The HRESULT from the method that failed..
|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |