From 2f0371e84dfbb9e82fcda981b7197742576966a4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 9 Dec 2010 10:33:25 +0100 Subject: [PATCH] wuapi: Add a typelib resource. --- .gitignore | 1 + dlls/wuapi/Makefile.in | 4 ++++ dlls/wuapi/rsrc.rc | 22 ++++++++++++++++++++++ dlls/wuapi/wuapi_tlb.idl | 21 +++++++++++++++++++++ include/wuapi.idl | 11 +++++++++++ 5 files changed, 59 insertions(+) create mode 100644 dlls/wuapi/rsrc.rc create mode 100644 dlls/wuapi/wuapi_tlb.idl diff --git a/.gitignore b/.gitignore index a981f92ca2d..88001d88095 100644 --- a/.gitignore +++ b/.gitignore @@ -145,6 +145,7 @@ dlls/urlmon/urlmon_urlmon.h dlls/urlmon/urlmon_urlmon_p.c dlls/windowscodecs/windowscodecs_wincodec.h dlls/windowscodecs/windowscodecs_wincodec_p.c +dlls/wuapi/wuapi_tlb.tlb include/activaut.h include/activdbg.h include/activscp.h diff --git a/dlls/wuapi/Makefile.in b/dlls/wuapi/Makefile.in index 658008a38ae..563f6110e95 100644 --- a/dlls/wuapi/Makefile.in +++ b/dlls/wuapi/Makefile.in @@ -11,4 +11,8 @@ C_SRCS = \ session.c \ updates.c +IDL_TLB_SRCS = wuapi_tlb.idl + +RC_SRCS = rsrc.rc + @MAKE_DLL_RULES@ diff --git a/dlls/wuapi/rsrc.rc b/dlls/wuapi/rsrc.rc new file mode 100644 index 00000000000..9ddce3ba509 --- /dev/null +++ b/dlls/wuapi/rsrc.rc @@ -0,0 +1,22 @@ +/* + * Resources for wuapi + * + * 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 + */ + +/* @makedep: wuapi_tlb.tlb */ +1 TYPELIB wuapi_tlb.tlb diff --git a/dlls/wuapi/wuapi_tlb.idl b/dlls/wuapi/wuapi_tlb.idl new file mode 100644 index 00000000000..120e36402c3 --- /dev/null +++ b/dlls/wuapi/wuapi_tlb.idl @@ -0,0 +1,21 @@ +/* + * Typelib for wuapi + * + * 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 "wuapi.idl" diff --git a/include/wuapi.idl b/include/wuapi.idl index dd5da6802df..31ae49c0622 100644 --- a/include/wuapi.idl +++ b/include/wuapi.idl @@ -21,6 +21,15 @@ cpp_quote("DEFINE_GUID(CLSID_UpdateSession, 0x4cb43d7f,0x7eee,0x4906,0x86,0x98,0 import "oaidl.idl"; +[ + helpstring("WUAPI 2.0 Type Library"), + uuid(b596cc9f-56e5-419e-a622-e01bb457431e), + version(2.0) +] +library WUApiLib { + +importlib("stdole2.tlb"); + interface ICategoryCollection; interface IStringCollection; interface IUpdateCollection; @@ -1287,3 +1296,5 @@ interface IUpdateInstaller : IDispatch HRESULT RebootRequiredBeforeInstallation( [out, retval] VARIANT_BOOL *retval); } + +} /* WUApiLib */