Package com.sun.jna.platform.win32.COM
Klasse COMUtils
java.lang.Object
com.sun.jna.platform.win32.COM.COMUtils
The Class COMUtils.
- Autor:
- wolf.tobias@gmx.net The Class COMUtils.
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intstatic final intstatic final intThe Constant CO_E_NOTINITIALIZED. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidcheckRC(WinNT.HRESULT hr) Throw new exception.static voidcheckRC(WinNT.HRESULT hr, OaIdl.EXCEPINFO pExcepInfo, IntByReference puArgErr) Check status of HRESULT if it indicates a failed call a COMInvokeException is reaised.static booleanCheck if COM was initialized correctly.static booleanFAILED(int hr) Failed.static booleanFAILED(WinNT.HRESULT hr) Failed.static ArrayList<COMUtils.COMInfo> Gets the all com info on system.static booleanSUCCEEDED(int hr) Succeeded.static booleanSucceeded.
-
Felddetails
-
S_OK
public static final int S_OKThe Constant CO_E_NOTINITIALIZED.- Siehe auch:
-
S_FALSE
public static final int S_FALSE- Siehe auch:
-
E_UNEXPECTED
public static final int E_UNEXPECTED- Siehe auch:
-
-
Konstruktordetails
-
COMUtils
public COMUtils()
-
-
Methodendetails
-
SUCCEEDED
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
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
Throw new exception.- Parameter:
hr- the hr
-
checkRC
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 hrpExcepInfo- the excep info, it is expectedpuArgErr- the pu arg err
-
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
-