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;
}
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());
}
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();
}
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());
}
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();
}
Aggregations