|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface STCComRuntime
STCComRuntime interface.
Method Summary | |
---|---|
int |
create(java.lang.String clsidString,
java.lang.String server)
Creates an instance of the COM object specified by the CLSID string and server (if DCOM component). |
void |
initialize()
CoInitializes 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()
CoUninitializes the current thread. |
Method Detail |
---|
void initialize()
STCComException
- Thrown if CoInitialize fails.void uninitialize()
int create(java.lang.String clsidString, java.lang.String server) throws STCComException
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. This
parameter can be null if not a DCOM component.
int
- Returns an interface handle for the specified CLSID string.
STCComException
- Thrown if creation of the instance fails.java.lang.String resolveSystemErrorText(int hr)
hr
- The HRESULT from the method that failed..
String
- Returns the error message from operating system, if any.
|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |