atl: Implement AtlRegisterLoadTypeLib.
This commit is contained in:
parent
8141b99d11
commit
da7bdf745f
|
@ -341,8 +341,25 @@ HRESULT WINAPI AtlModuleGetClassObject(_ATL_MODULEW *pm, REFCLSID rclsid,
|
|||
*/
|
||||
HRESULT WINAPI AtlModuleRegisterTypeLib(_ATL_MODULEW *pm, LPCOLESTR lpszIndex)
|
||||
{
|
||||
FIXME("%p %s\n", pm, debugstr_w(lpszIndex));
|
||||
return E_FAIL;
|
||||
HRESULT hRes;
|
||||
BSTR path;
|
||||
ITypeLib *typelib;
|
||||
|
||||
TRACE("%p %s\n", pm, debugstr_w(lpszIndex));
|
||||
|
||||
if (!pm)
|
||||
return E_INVALIDARG;
|
||||
|
||||
hRes = AtlModuleLoadTypeLib(pm, lpszIndex, &path, &typelib);
|
||||
|
||||
if (SUCCEEDED(hRes))
|
||||
{
|
||||
hRes = RegisterTypeLib(typelib, path, NULL); /* FIXME: pass help directory */
|
||||
ITypeLib_Release(typelib);
|
||||
SysFreeString(path);
|
||||
}
|
||||
|
||||
return hRes;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -154,6 +154,7 @@ LPVOID WINAPI AtlModuleExtractCreateWndData(_ATL_MODULEW *pM);
|
|||
HRESULT WINAPI AtlModuleInit(_ATL_MODULEW* pM, _ATL_OBJMAP_ENTRYW* p, HINSTANCE h);
|
||||
HRESULT WINAPI AtlModuleRegisterClassObjects(_ATL_MODULEW* pM, DWORD dwClsContext, DWORD dwFlags);
|
||||
HRESULT WINAPI AtlModuleRegisterServer(_ATL_MODULEW* pM, BOOL bRegTypeLib, const CLSID* pCLSID);
|
||||
HRESULT WINAPI AtlModuleRegisterTypeLib(_ATL_MODULEW *pM, LPCOLESTR lpszIndex);
|
||||
HRESULT WINAPI AtlModuleUnregisterServer(_ATL_MODULEW* pM, const CLSID* pCLSID);
|
||||
HRESULT WINAPI AtlModuleUpdateRegistryFromResourceD(_ATL_MODULEW *pM, LPCOLESTR lpszRes, BOOL bRegister, struct _ATL_REGMAP_ENTRY *pMapEntries, IRegistrar *pReg );
|
||||
HRESULT WINAPI AtlModuleUnregisterServerEx(_ATL_MODULEW* pM, BOOL bUnRegTypeLib, const CLSID* pCLSID);
|
||||
|
|
Loading…
Reference in New Issue