Search in sources :

Example 6 with UINT

use of com.sun.jna.platform.win32.WinDef.UINT in project jna by java-native-access.

the class TypeLibUtil method getTypeInfoType.

/**
     * Gets the type info type.
     * 
     * @param index
     *            the index
     * @return the type info type
     */
public TYPEKIND getTypeInfoType(int index) {
    TYPEKIND.ByReference typekind = new TYPEKIND.ByReference();
    HRESULT hr = this.typelib.GetTypeInfoType(new UINT(index), typekind);
    COMUtils.checkRC(hr);
    return typekind;
}
Also used : HRESULT(com.sun.jna.platform.win32.WinNT.HRESULT) DWORDByReference(com.sun.jna.platform.win32.WinDef.DWORDByReference) BSTRByReference(com.sun.jna.platform.win32.WTypes.BSTRByReference) PointerByReference(com.sun.jna.ptr.PointerByReference) BOOLByReference(com.sun.jna.platform.win32.WinDef.BOOLByReference) USHORTByReference(com.sun.jna.platform.win32.WinDef.USHORTByReference) UINT(com.sun.jna.platform.win32.WinDef.UINT) TYPEKIND(com.sun.jna.platform.win32.OaIdl.TYPEKIND)

Example 7 with UINT

use of com.sun.jna.platform.win32.WinDef.UINT in project jna by java-native-access.

the class TypeInfoUtil method getFuncDesc.

/**
     * Gets the func desc.
     * 
     * @param index
     *            the index
     * @return the func desc
     */
public FUNCDESC getFuncDesc(int index) {
    PointerByReference ppFuncDesc = new PointerByReference();
    HRESULT hr = this.typeInfo.GetFuncDesc(new UINT(index), ppFuncDesc);
    COMUtils.checkRC(hr);
    return new FUNCDESC(ppFuncDesc.getValue());
}
Also used : HRESULT(com.sun.jna.platform.win32.WinNT.HRESULT) PointerByReference(com.sun.jna.ptr.PointerByReference) FUNCDESC(com.sun.jna.platform.win32.OaIdl.FUNCDESC) UINT(com.sun.jna.platform.win32.WinDef.UINT)

Example 8 with UINT

use of com.sun.jna.platform.win32.WinDef.UINT in project jna by java-native-access.

the class TypeInfoUtil method getRefTypeOfImplType.

/**
     * Gets the ref type of impl type.
     * 
     * @param index
     *            the index
     * @return the ref type of impl type
     */
public HREFTYPE getRefTypeOfImplType(int index) {
    HREFTYPEByReference ppTInfo = new HREFTYPEByReference();
    HRESULT hr = this.typeInfo.GetRefTypeOfImplType(new UINT(index), ppTInfo);
    COMUtils.checkRC(hr);
    return ppTInfo.getValue();
}
Also used : HRESULT(com.sun.jna.platform.win32.WinNT.HRESULT) HREFTYPEByReference(com.sun.jna.platform.win32.OaIdl.HREFTYPEByReference) UINT(com.sun.jna.platform.win32.WinDef.UINT)

Example 9 with UINT

use of com.sun.jna.platform.win32.WinDef.UINT in project jna by java-native-access.

the class TypeInfoUtil method getVarDesc.

/**
     * Gets the var desc.
     * 
     * @param index
     *            the index
     * @return the var desc
     */
public VARDESC getVarDesc(int index) {
    PointerByReference ppVarDesc = new PointerByReference();
    HRESULT hr = this.typeInfo.GetVarDesc(new UINT(index), ppVarDesc);
    COMUtils.checkRC(hr);
    return new VARDESC(ppVarDesc.getValue());
}
Also used : HRESULT(com.sun.jna.platform.win32.WinNT.HRESULT) PointerByReference(com.sun.jna.ptr.PointerByReference) UINT(com.sun.jna.platform.win32.WinDef.UINT) VARDESC(com.sun.jna.platform.win32.OaIdl.VARDESC)

Example 10 with UINT

use of com.sun.jna.platform.win32.WinDef.UINT in project jna by java-native-access.

the class TypeInfoUtil method getImplTypeFlags.

/**
     * Gets the impl type flags.
     * 
     * @param index
     *            the index
     * @return the impl type flags
     */
public int getImplTypeFlags(int index) {
    IntByReference pImplTypeFlags = new IntByReference();
    HRESULT hr = this.typeInfo.GetImplTypeFlags(new UINT(index), pImplTypeFlags);
    COMUtils.checkRC(hr);
    return pImplTypeFlags.getValue();
}
Also used : IntByReference(com.sun.jna.ptr.IntByReference) HRESULT(com.sun.jna.platform.win32.WinNT.HRESULT) UINT(com.sun.jna.platform.win32.WinDef.UINT)

Aggregations

UINT (com.sun.jna.platform.win32.WinDef.UINT)17 HRESULT (com.sun.jna.platform.win32.WinNT.HRESULT)15 PointerByReference (com.sun.jna.ptr.PointerByReference)7 Test (org.junit.Test)5 MEMBERID (com.sun.jna.platform.win32.OaIdl.MEMBERID)3 HREFTYPEByReference (com.sun.jna.platform.win32.OaIdl.HREFTYPEByReference)2 TYPEKIND (com.sun.jna.platform.win32.OaIdl.TYPEKIND)2 BSTR (com.sun.jna.platform.win32.WTypes.BSTR)2 UINTByReference (com.sun.jna.platform.win32.WinDef.UINTByReference)2 USHORTByReference (com.sun.jna.platform.win32.WinDef.USHORTByReference)2 IntByReference (com.sun.jna.ptr.IntByReference)2 Pointer (com.sun.jna.Pointer)1 COMException (com.sun.jna.platform.win32.COM.COMException)1 IConnectionPoint (com.sun.jna.platform.win32.COM.util.IConnectionPoint)1 ObjectFactory (com.sun.jna.platform.win32.COM.util.ObjectFactory)1 ComObject (com.sun.jna.platform.win32.COM.util.annotation.ComObject)1 FUNCDESC (com.sun.jna.platform.win32.OaIdl.FUNCDESC)1 SAFEARRAY (com.sun.jna.platform.win32.OaIdl.SAFEARRAY)1 VARDESC (com.sun.jna.platform.win32.OaIdl.VARDESC)1 VARIANT (com.sun.jna.platform.win32.Variant.VARIANT)1