Search in sources :

Example 1 with VARDESC

use of com.sun.jna.platform.win32.OaIdl.VARDESC 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)

Aggregations

VARDESC (com.sun.jna.platform.win32.OaIdl.VARDESC)1 UINT (com.sun.jna.platform.win32.WinDef.UINT)1 HRESULT (com.sun.jna.platform.win32.WinNT.HRESULT)1 PointerByReference (com.sun.jna.ptr.PointerByReference)1