mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
shell32: Added typelib.
This commit is contained in:
parent
1adbaadc89
commit
535f0bce59
5 changed files with 38 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -89,6 +89,8 @@ RC_SRCS = \
|
|||
|
||||
PO_SRCS = shell32.rc
|
||||
|
||||
IDL_TLB_SRCS = shell32_tlb.idl
|
||||
|
||||
SVG_SRCS = \
|
||||
cdrom.svg \
|
||||
control.svg \
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
19
dlls/shell32/shell32_tlb.idl
Normal file
19
dlls/shell32/shell32_tlb.idl
Normal 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"
|
Loading…
Reference in a new issue