Sun Adapter for COM/DCOM API

com.stc.connector.comadapter.comruntimeimpl
Class STCComUtils

java.lang.Object
  extended by com.stc.connector.comadapter.comruntimeimpl.STCComUtils

public class STCComUtils
extends java.lang.Object


Method Summary
static STCComUtils getUtils()
           
 void initialize()
           Call this method to CoInitialize the current thread.
 void invokeComTask(ComTask task)
           
 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
 

Method Detail

getUtils

public static STCComUtils getUtils()

initialize

public void initialize()

Call this method to CoInitialize the current thread.


uninitialize

public void uninitialize()

Call this method to CoUninitialize the current thread.


resolveSystemErrorText

public java.lang.String resolveSystemErrorText(int hr)
A convenience method exposed to allow the user to get the error text for an HRESULT. The Method routes down to the FormatMessage method in the Win32 API.

Returns:
Error message from operating system, if any.

invokeComTask

public void invokeComTask(ComTask task)
                   throws STCComException
Throws:
STCComException

Sun Adapter for COM/DCOM API

Copyright © 1994-2008 Sun Microsystems, Inc. All rights reserved.