Commit 62c37253 authored by Alexandre Julliard's avatar Alexandre Julliard

msxml6: Add a typelib resource.

parent d344e9a2
......@@ -95,6 +95,7 @@ dlls/msxml3/msxml3_v1.tlb
dlls/msxml3/xslpattern.tab.c
dlls/msxml3/xslpattern.tab.h
dlls/msxml3/xslpattern.yy.c
dlls/msxml6/msxml6_tlb.tlb
dlls/ole32/dcom.h
dlls/ole32/dcom_p.c
dlls/ole32/irot.h
......
EXTRADEFS = -DCOM_NO_WINDOWS_H
MODULE = msxml6.dll
IMPORTS = ole32 advapi32
IMPORTS = oleaut32 ole32 advapi32
C_SRCS = \
main.c \
......@@ -8,4 +8,6 @@ C_SRCS = \
RC_SRCS = rsrc.rc
IDL_TLB_SRCS = msxml6_tlb.idl
@MAKE_DLL_RULES@
/*
* Copyright 2010 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "msxml6.idl"
......@@ -438,6 +438,7 @@ static struct progid const progid_list[] = {
*/
HRESULT WINAPI DllRegisterServer(void)
{
static const WCHAR msxml6W[] = {'m','s','x','m','l','6','.','d','l','l',0};
HRESULT hr;
TRACE("\n");
......@@ -446,6 +447,13 @@ HRESULT WINAPI DllRegisterServer(void)
if (SUCCEEDED(hr))
hr = register_progids(progid_list);
if (SUCCEEDED(hr))
{
ITypeLib *tl;
hr = LoadTypeLibEx( msxml6W, REGKIND_REGISTER, &tl );
if (SUCCEEDED(hr)) ITypeLib_Release( tl );
}
return hr;
}
......@@ -461,6 +469,8 @@ HRESULT WINAPI DllUnregisterServer(void)
hr = unregister_coclasses(coclass_list);
if (SUCCEEDED(hr))
hr = unregister_progids(progid_list);
if (SUCCEEDED(hr))
hr = UnRegisterTypeLib( &LIBID_MSXML2, 6, 0, LOCALE_SYSTEM_DEFAULT, SYS_WIN32 );
return hr;
}
......@@ -16,6 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* @makedep: msxml6_tlb.tlb */
1 TYPELIB msxml6_tlb.tlb
#define WINE_OLESELFREGISTER
#define WINE_FILEDESCRIPTION_STR "Wine MSXML 6.0"
#define WINE_FILENAME_STR "msxml6.dll"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment