Klasse COMUtils

java.lang.Object
com.sun.jna.platform.win32.COM.COMUtils

public abstract class COMUtils extends Object
The Class COMUtils.
Autor:
[email protected] The Class COMUtils.
  • Felddetails

  • Konstruktordetails

    • COMUtils

      public COMUtils()
  • Methodendetails

    • SUCCEEDED

      public static boolean SUCCEEDED(WinNT.HRESULT hr)
      Succeeded.
      Parameter:
      hr - the hr
      Gibt zurück:
      true, if successful
    • SUCCEEDED

      public static boolean SUCCEEDED(int hr)
      Succeeded.
      Parameter:
      hr - the hr
      Gibt zurück:
      true, if successful
    • FAILED

      public static boolean FAILED(WinNT.HRESULT hr)
      Failed.
      Parameter:
      hr - the hr
      Gibt zurück:
      true, if successful
    • FAILED

      public static boolean FAILED(int hr)
      Failed.
      Parameter:
      hr - the hr
      Gibt zurück:
      true, if successful
    • checkRC

      public static void checkRC(WinNT.HRESULT hr)
      Throw new exception.
      Parameter:
      hr - the hr
    • checkRC

      public static void checkRC(WinNT.HRESULT hr, OaIdl.EXCEPINFO pExcepInfo, IntByReference puArgErr)
      Check status of HRESULT if it indicates a failed call a COMInvokeException is reaised.

      The string members of the pExcepInfo are freed in this call and can't be used afterwards. The structure is not freeed, as it is expected, that is allocated via the Memory object of JNA.

      Parameter:
      hr - the hr
      pExcepInfo - the excep info, it is expected
      puArgErr - the pu arg err
    • getAllCOMInfoOnSystem

      public static ArrayList<COMUtils.COMInfo> getAllCOMInfoOnSystem()
      Gets the all com info on system.
      Gibt zurück:
      the all com info on system
    • comIsInitialized

      public static boolean comIsInitialized()
      Check if COM was initialized correctly. The initialization status is not changed!

      This is a debug function, not for normal usage!

      Gibt zurück:
      whether COM has been initialized