use of com.sun.jna.platform.win32.OaIdl.TLIBATTR in project jna by java-native-access.
the class ITypeLibTest method testLibAttr.
public void testLibAttr() {
ITypeLib shellTypeLib = loadShellTypeLib();
PointerByReference pbr = new PointerByReference();
HRESULT hr = shellTypeLib.GetLibAttr(pbr);
assertTrue(COMUtils.SUCCEEDED(hr));
OaIdl.TLIBATTR tlibAttr = new OaIdl.TLIBATTR(pbr.getValue());
assertEquals(SHELL_CLSID, tlibAttr.guid.toGuidString());
assertEquals(SHELL_MAJOR, tlibAttr.wMajorVerNum.intValue());
assertEquals(SHELL_MINOR, tlibAttr.wMinorVerNum.intValue());
shellTypeLib.ReleaseTLibAttr(tlibAttr);
}
use of com.sun.jna.platform.win32.OaIdl.TLIBATTR in project jna by java-native-access.
the class TypeLibUtil method getLibAttr.
/**
* Gets the lib attr.
*
* @return the lib attr
*/
public TLIBATTR getLibAttr() {
PointerByReference ppTLibAttr = new PointerByReference();
HRESULT hr = typelib.GetLibAttr(ppTLibAttr);
COMUtils.checkRC(hr);
return new TLIBATTR(ppTLibAttr.getValue());
}
Aggregations