Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8b308498
Commit
8b308498
authored
Jan 18, 2011
by
Alexander Morozov
Committed by
Alexandre Julliard
Jan 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add stub implementation of IShellDispatch.
parent
b3882bb3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
360 additions
and
0 deletions
+360
-0
Makefile.in
dlls/shell32/Makefile.in
+1
-0
shell32_main.h
dlls/shell32/shell32_main.h
+1
-0
shelldispatch.c
dlls/shell32/shelldispatch.c
+356
-0
shellole.c
dlls/shell32/shellole.c
+2
-0
No files found.
dlls/shell32/Makefile.in
View file @
8b308498
...
...
@@ -27,6 +27,7 @@ C_SRCS = \
recyclebin.c
\
regsvr.c
\
shell32_main.c
\
shelldispatch.c
\
shellitem.c
\
shelllink.c
\
shellole.c
\
...
...
dlls/shell32/shell32_main.h
View file @
8b308498
...
...
@@ -83,6 +83,7 @@ IContextMenu2 * ISvBgCm_Constructor(LPSHELLFOLDER pSFParent, BOOL bDesktop);
LPSHELLVIEW
IShellView_Constructor
(
LPSHELLFOLDER
);
HRESULT
WINAPI
IFSFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
IShellDispatch_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
IShellItem_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
IShellLink_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
IShellLink_ConstructFromFile
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPCITEMIDLIST
pidl
,
LPVOID
*
ppv
);
...
...
dlls/shell32/shelldispatch.c
0 → 100644
View file @
8b308498
/*
* IShellDispatch implementation
*
* 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 "config.h"
#include "wine/port.h"
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "shlobj.h"
#include "shldisp.h"
#include "debughlp.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
shell
);
typedef
struct
{
IShellDispatch
IShellDispatch_iface
;
LONG
ref
;
}
ShellDispatch
;
static
inline
ShellDispatch
*
impl_from_IShellDispatch
(
IShellDispatch
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ShellDispatch
,
IShellDispatch_iface
);
}
static
HRESULT
WINAPI
ShellDispatch_QueryInterface
(
IShellDispatch
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
(
iface
);
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
riid
,
ppv
);
if
(
!
ppv
)
return
E_INVALIDARG
;
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IDispatch
,
riid
)
||
IsEqualIID
(
&
IID_IShellDispatch
,
riid
))
*
ppv
=
This
;
else
{
FIXME
(
"not implemented for %s
\n
"
,
shdebugstr_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
ShellDispatch_AddRef
(
IShellDispatch
*
iface
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
iface
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
ShellDispatch_Release
(
IShellDispatch
*
iface
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
iface
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
HRESULT
WINAPI
ShellDispatch_GetTypeInfoCount
(
IShellDispatch
*
iface
,
UINT
*
pctinfo
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
pctinfo
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_GetTypeInfo
(
IShellDispatch
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
FIXME
(
"(%p,%u,%d,%p)
\n
"
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
*
ppTInfo
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_GetIDsOfNames
(
IShellDispatch
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
FIXME
(
"(%p,%p,%p,%u,%d,%p)
\n
"
,
iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Invoke
(
IShellDispatch
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
FIXME
(
"(%p,%d,%p,%d,%u,%p,%p,%p,%p)
\n
"
,
iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_get_Application
(
IShellDispatch
*
iface
,
IDispatch
**
ppid
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppid
);
*
ppid
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_get_Parent
(
IShellDispatch
*
iface
,
IDispatch
**
ppid
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppid
);
*
ppid
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_NameSpace
(
IShellDispatch
*
iface
,
VARIANT
vDir
,
Folder
**
ppsdf
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppsdf
);
*
ppsdf
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_BrowseForFolder
(
IShellDispatch
*
iface
,
LONG
Hwnd
,
BSTR
Title
,
LONG
Options
,
VARIANT
RootFolder
,
Folder
**
ppsdf
)
{
FIXME
(
"(%p,%x,%s,%x,%p)
\n
"
,
iface
,
Hwnd
,
debugstr_w
(
Title
),
Options
,
ppsdf
);
*
ppsdf
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Windows
(
IShellDispatch
*
iface
,
IDispatch
**
ppid
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppid
);
*
ppid
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Open
(
IShellDispatch
*
iface
,
VARIANT
vDir
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Explore
(
IShellDispatch
*
iface
,
VARIANT
vDir
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_MinimizeAll
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_UndoMinimizeALL
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_FileRun
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_CascadeWindows
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_TileVertically
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_TileHorizontally
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ShutdownWindows
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Suspend
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_EjectPC
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_SetTime
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_TrayProperties
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Help
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_FindFiles
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_FindComputer
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_RefreshMenu
(
IShellDispatch
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ControlPanelItem
(
IShellDispatch
*
iface
,
BSTR
szDir
)
{
FIXME
(
"(%p,%s)
\n
"
,
iface
,
debugstr_w
(
szDir
));
return
E_NOTIMPL
;
}
static
const
IShellDispatchVtbl
ShellDispatch_Vtbl
=
{
ShellDispatch_QueryInterface
,
ShellDispatch_AddRef
,
ShellDispatch_Release
,
ShellDispatch_GetTypeInfoCount
,
ShellDispatch_GetTypeInfo
,
ShellDispatch_GetIDsOfNames
,
ShellDispatch_Invoke
,
ShellDispatch_get_Application
,
ShellDispatch_get_Parent
,
ShellDispatch_NameSpace
,
ShellDispatch_BrowseForFolder
,
ShellDispatch_Windows
,
ShellDispatch_Open
,
ShellDispatch_Explore
,
ShellDispatch_MinimizeAll
,
ShellDispatch_UndoMinimizeALL
,
ShellDispatch_FileRun
,
ShellDispatch_CascadeWindows
,
ShellDispatch_TileVertically
,
ShellDispatch_TileHorizontally
,
ShellDispatch_ShutdownWindows
,
ShellDispatch_Suspend
,
ShellDispatch_EjectPC
,
ShellDispatch_SetTime
,
ShellDispatch_TrayProperties
,
ShellDispatch_Help
,
ShellDispatch_FindFiles
,
ShellDispatch_FindComputer
,
ShellDispatch_RefreshMenu
,
ShellDispatch_ControlPanelItem
};
HRESULT
WINAPI
IShellDispatch_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
ShellDispatch
*
This
;
HRESULT
ret
;
TRACE
(
"(%p,%s)
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ShellDispatch
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IShellDispatch_iface
.
lpVtbl
=
&
ShellDispatch_Vtbl
;
This
->
ref
=
1
;
ret
=
ShellDispatch_QueryInterface
(
&
This
->
IShellDispatch_iface
,
riid
,
ppv
);
ShellDispatch_Release
(
&
This
->
IShellDispatch_iface
);
return
ret
;
}
dlls/shell32/shellole.c
View file @
8b308498
...
...
@@ -35,6 +35,7 @@
#include "winuser.h"
#include "shlobj.h"
#include "shlguid.h"
#include "shldisp.h"
#include "winreg.h"
#include "winerror.h"
...
...
@@ -80,6 +81,7 @@ static const struct {
{
&
CLSID_UnixFolder
,
UnixFolder_Constructor
},
{
&
CLSID_ExplorerBrowser
,
ExplorerBrowser_Constructor
},
{
&
CLSID_KnownFolderManager
,
KnownFolderManager_Constructor
},
{
&
CLSID_Shell
,
IShellDispatch_Constructor
},
{
NULL
,
NULL
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment