assertEquals(0, hr.intValue());
// get user default lcid
LCID lcid = Kernel32.INSTANCE.GetUserDefaultLCID();
// create a IUnknown pointer
PointerByReference pShellTypeLib = new PointerByReference();
// load typelib
hr = OleAuto.INSTANCE.LoadRegTypeLib(clsid, 1, 0, lcid, pShellTypeLib);
COMUtils.checkRC(hr);
assertEquals(0, hr.intValue());
return new TypeLib(pShellTypeLib.getValue());
}