msxml6: Add a typelib resource.

This commit is contained in:
Alexandre Julliard 2010-11-09 23:10:23 +01:00
parent d344e9a261
commit 62c37253e6
5 changed files with 36 additions and 1 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -1,6 +1,6 @@
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@

View File

@ -0,0 +1,19 @@
/*
* 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"

View File

@ -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;
}

View File

@ -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"