shell32: Added typelib.

This commit is contained in:
Alexander Morozov 2011-01-18 21:36:08 +03:00 committed by Alexandre Julliard
parent 1adbaadc89
commit 535f0bce59
5 changed files with 38 additions and 0 deletions

1
.gitignore vendored
View file

@ -127,6 +127,7 @@ dlls/rpcrt4/tests/server_c.c
dlls/rpcrt4/tests/server_s.c
dlls/shdocvw/shdocvw_v1.tlb
dlls/shell32/AUTHORS
dlls/shell32/shell32_tlb.tlb
dlls/stdole2.tlb/std_ole_v2.tlb
dlls/stdole32.tlb/std_ole_v1.tlb
dlls/sti/sti_wia.h

View file

@ -89,6 +89,8 @@ RC_SRCS = \
PO_SRCS = shell32.rc
IDL_TLB_SRCS = shell32_tlb.idl
SVG_SRCS = \
cdrom.svg \
control.svg \

View file

@ -22,6 +22,8 @@
#include <string.h>
#include <stdio.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
@ -837,6 +839,8 @@ static struct regsvr_namespace const namespace_extensions_list[] = {
HRESULT WINAPI DllRegisterServer(void)
{
HRESULT hr;
ITypeLib *tl;
static const WCHAR wszShell32[] = { 's','h','e','l','l','3','2','.','d','l','l', 0 };
TRACE("\n");
@ -847,6 +851,12 @@ HRESULT WINAPI DllRegisterServer(void)
hr = SHELL_RegisterShellFolders();
if (SUCCEEDED(hr))
hr = register_namespace_extensions(namespace_extensions_list);
if (SUCCEEDED(hr))
{
hr = LoadTypeLibEx(wszShell32, REGKIND_REGISTER, &tl);
if(SUCCEEDED(hr))
ITypeLib_Release(tl);
}
return hr;
}
@ -864,5 +874,8 @@ HRESULT WINAPI DllUnregisterServer(void)
hr = unregister_interfaces(interface_list);
if (SUCCEEDED(hr))
hr = unregister_namespace_extensions(namespace_extensions_list);
if (SUCCEEDED(hr))
hr = UnRegisterTypeLib(&LIBID_Shell32, 1, 0, LOCALE_SYSTEM_DEFAULT,
SYS_WIN32);
return hr;
}

View file

@ -260,6 +260,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA."
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
/* @makedep: shell32_tlb.tlb */
1 TYPELIB shell32_tlb.tlb
shv_accel ACCELERATORS
BEGIN
VK_F5, FCIDM_SHVIEW_REFRESH, VIRTKEY

View file

@ -0,0 +1,19 @@
/*
* Copyright 2010 Alexander Morozov for Etersoft
*
* 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 "shldisp.idl"