Skip navigation links
JNA API 4.5.2
com.sun.jna.platform.win32.COM

Class COMUtils



  • public abstract class COMUtils
    extends java.lang.Object
    The Class COMUtils.
    Author:
    wolf.tobias@gmx.net The Class COMUtils.
    • Constructor Detail

      • COMUtils

        public COMUtils()
    • Method Detail

      • SUCCEEDED

        public static boolean SUCCEEDED(WinNT.HRESULT hr)
        Succeeded.
        Parameters:
        hr - the hr
        Returns:
        true, if successful
      • SUCCEEDED

        public static boolean SUCCEEDED(int hr)
        Succeeded.
        Parameters:
        hr - the hr
        Returns:
        true, if successful
      • FAILED

        public static boolean FAILED(WinNT.HRESULT hr)
        Failed.
        Parameters:
        hr - the hr
        Returns:
        true, if successful
      • FAILED

        public static boolean FAILED(int hr)
        Failed.
        Parameters:
        hr - the hr
        Returns:
        true, if successful
      • checkRC

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

        public static void checkRC(WinNT.HRESULT hr,
                                   OaIdl.EXCEPINFO pExcepInfo,
                                   IntByReference puArgErr)
        Throw new exception.
        Parameters:
        hr - the hr
        pExcepInfo - the excep info
        puArgErr - the pu arg err
      • getAllCOMInfoOnSystem

        public static java.util.ArrayList<COMUtils.COMInfo> getAllCOMInfoOnSystem()
        Gets the all com info on system.
        Returns:
        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!

        Returns:
        whether COM has been initialized
JNA API 4.5.2

Copyright © 2007-2017 Timothy Wall. All Rights Reserved.