Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7b0c231f
Commit
7b0c231f
authored
Nov 13, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Update to IShellDispatch5.
parent
fe5a27ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
57 deletions
+102
-57
shelldispatch.c
dlls/shell32/shelldispatch.c
+102
-57
No files found.
dlls/shell32/shelldispatch.c
View file @
7b0c231f
...
...
@@ -41,7 +41,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
shell
);
typedef
struct
{
IShellDispatch
2
IShellDispatch2
_iface
;
IShellDispatch
5
IShellDispatch5
_iface
;
LONG
ref
;
ITypeInfo
*
typeinfo
;
}
ShellDispatch
;
...
...
@@ -60,9 +60,9 @@ typedef struct {
VARIANT
dir
;
}
FolderItemImpl
;
static
inline
ShellDispatch
*
impl_from_IShellDispatch
2
(
IShellDispatch2
*
iface
)
static
inline
ShellDispatch
*
impl_from_IShellDispatch
5
(
IShellDispatch5
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ShellDispatch
,
IShellDispatch
2
_iface
);
return
CONTAINING_RECORD
(
iface
,
ShellDispatch
,
IShellDispatch
5
_iface
);
}
static
inline
FolderImpl
*
impl_from_Folder
(
Folder3
*
iface
)
...
...
@@ -735,10 +735,10 @@ static HRESULT Folder_Constructor(VARIANT *dir, Folder **ppsdf)
return
ret
;
}
static
HRESULT
WINAPI
ShellDispatch_QueryInterface
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_QueryInterface
(
IShellDispatch
5
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
2
(
iface
);
ShellDispatch
*
This
=
impl_from_IShellDispatch
5
(
iface
);
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
riid
,
ppv
);
...
...
@@ -747,8 +747,11 @@ static HRESULT WINAPI ShellDispatch_QueryInterface(IShellDispatch2 *iface,
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IDispatch
,
riid
)
||
IsEqualIID
(
&
IID_IShellDispatch
,
riid
)
||
IsEqualIID
(
&
IID_IShellDispatch2
,
riid
))
*
ppv
=
&
This
->
IShellDispatch2_iface
;
IsEqualIID
(
&
IID_IShellDispatch2
,
riid
)
||
IsEqualIID
(
&
IID_IShellDispatch3
,
riid
)
||
IsEqualIID
(
&
IID_IShellDispatch4
,
riid
)
||
IsEqualIID
(
&
IID_IShellDispatch5
,
riid
))
*
ppv
=
&
This
->
IShellDispatch5_iface
;
else
{
FIXME
(
"not implemented for %s
\n
"
,
shdebugstr_guid
(
riid
));
...
...
@@ -756,13 +759,13 @@ static HRESULT WINAPI ShellDispatch_QueryInterface(IShellDispatch2 *iface,
return
E_NOINTERFACE
;
}
IShellDispatch
2
_AddRef
(
iface
);
IShellDispatch
5
_AddRef
(
iface
);
return
S_OK
;
}
static
ULONG
WINAPI
ShellDispatch_AddRef
(
IShellDispatch
2
*
iface
)
static
ULONG
WINAPI
ShellDispatch_AddRef
(
IShellDispatch
5
*
iface
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
2
(
iface
);
ShellDispatch
*
This
=
impl_from_IShellDispatch
5
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
iface
,
ref
);
...
...
@@ -770,9 +773,9 @@ static ULONG WINAPI ShellDispatch_AddRef(IShellDispatch2 *iface)
return
ref
;
}
static
ULONG
WINAPI
ShellDispatch_Release
(
IShellDispatch
2
*
iface
)
static
ULONG
WINAPI
ShellDispatch_Release
(
IShellDispatch
5
*
iface
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
2
(
iface
);
ShellDispatch
*
This
=
impl_from_IShellDispatch
5
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
iface
,
ref
);
...
...
@@ -785,7 +788,7 @@ static ULONG WINAPI ShellDispatch_Release(IShellDispatch2 *iface)
return
ref
;
}
static
HRESULT
WINAPI
ShellDispatch_GetTypeInfoCount
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_GetTypeInfoCount
(
IShellDispatch
5
*
iface
,
UINT
*
pctinfo
)
{
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pctinfo
);
...
...
@@ -794,10 +797,10 @@ static HRESULT WINAPI ShellDispatch_GetTypeInfoCount(IShellDispatch2 *iface,
return
S_OK
;
}
static
HRESULT
WINAPI
ShellDispatch_GetTypeInfo
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_GetTypeInfo
(
IShellDispatch
5
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
2
(
iface
);
ShellDispatch
*
This
=
impl_from_IShellDispatch
5
(
iface
);
TRACE
(
"(%p,%u,%d,%p)
\n
"
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
...
...
@@ -806,10 +809,10 @@ static HRESULT WINAPI ShellDispatch_GetTypeInfo(IShellDispatch2 *iface,
return
S_OK
;
}
static
HRESULT
WINAPI
ShellDispatch_GetIDsOfNames
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_GetIDsOfNames
(
IShellDispatch
5
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
2
(
iface
);
ShellDispatch
*
This
=
impl_from_IShellDispatch
5
(
iface
);
TRACE
(
"(%p,%p,%p,%u,%d,%p)
\n
"
,
iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
...
...
@@ -817,12 +820,12 @@ static HRESULT WINAPI ShellDispatch_GetIDsOfNames(IShellDispatch2 *iface,
return
ITypeInfo_GetIDsOfNames
(
This
->
typeinfo
,
rgszNames
,
cNames
,
rgDispId
);
}
static
HRESULT
WINAPI
ShellDispatch_Invoke
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_Invoke
(
IShellDispatch
5
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
ShellDispatch
*
This
=
impl_from_IShellDispatch
2
(
iface
);
ShellDispatch
*
This
=
impl_from_IShellDispatch
5
(
iface
);
TRACE
(
"(%p,%d,%p,%d,%u,%p,%p,%p,%p)
\n
"
,
iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
...
...
@@ -831,7 +834,7 @@ static HRESULT WINAPI ShellDispatch_Invoke(IShellDispatch2 *iface,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
static
HRESULT
WINAPI
ShellDispatch_get_Application
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_get_Application
(
IShellDispatch
5
*
iface
,
IDispatch
**
ppid
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppid
);
...
...
@@ -840,7 +843,7 @@ static HRESULT WINAPI ShellDispatch_get_Application(IShellDispatch2 *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_get_Parent
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_get_Parent
(
IShellDispatch
5
*
iface
,
IDispatch
**
ppid
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppid
);
...
...
@@ -849,7 +852,7 @@ static HRESULT WINAPI ShellDispatch_get_Parent(IShellDispatch2 *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_NameSpace
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_NameSpace
(
IShellDispatch
5
*
iface
,
VARIANT
vDir
,
Folder
**
ppsdf
)
{
TRACE
(
"(%p,%p)
\n
"
,
iface
,
ppsdf
);
...
...
@@ -857,7 +860,7 @@ static HRESULT WINAPI ShellDispatch_NameSpace(IShellDispatch2 *iface,
return
Folder_Constructor
(
&
vDir
,
ppsdf
);
}
static
HRESULT
WINAPI
ShellDispatch_BrowseForFolder
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_BrowseForFolder
(
IShellDispatch
5
*
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
);
...
...
@@ -866,7 +869,7 @@ static HRESULT WINAPI ShellDispatch_BrowseForFolder(IShellDispatch2 *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Windows
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_Windows
(
IShellDispatch
5
*
iface
,
IDispatch
**
ppid
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppid
);
...
...
@@ -875,126 +878,126 @@ static HRESULT WINAPI ShellDispatch_Windows(IShellDispatch2 *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Open
(
IShellDispatch
2
*
iface
,
VARIANT
vDir
)
static
HRESULT
WINAPI
ShellDispatch_Open
(
IShellDispatch
5
*
iface
,
VARIANT
vDir
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Explore
(
IShellDispatch
2
*
iface
,
VARIANT
vDir
)
static
HRESULT
WINAPI
ShellDispatch_Explore
(
IShellDispatch
5
*
iface
,
VARIANT
vDir
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_MinimizeAll
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_MinimizeAll
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_UndoMinimizeALL
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_UndoMinimizeALL
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_FileRun
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_FileRun
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_CascadeWindows
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_CascadeWindows
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_TileVertically
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_TileVertically
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_TileHorizontally
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_TileHorizontally
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ShutdownWindows
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_ShutdownWindows
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Suspend
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_Suspend
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_EjectPC
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_EjectPC
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_SetTime
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_SetTime
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_TrayProperties
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_TrayProperties
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_Help
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_Help
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_FindFiles
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_FindFiles
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_FindComputer
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_FindComputer
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_RefreshMenu
(
IShellDispatch
2
*
iface
)
static
HRESULT
WINAPI
ShellDispatch_RefreshMenu
(
IShellDispatch
5
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ControlPanelItem
(
IShellDispatch
2
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_ControlPanelItem
(
IShellDispatch
5
*
iface
,
BSTR
szDir
)
{
FIXME
(
"(%p,%s)
\n
"
,
iface
,
debugstr_w
(
szDir
));
...
...
@@ -1002,44 +1005,44 @@ static HRESULT WINAPI ShellDispatch_ControlPanelItem(IShellDispatch2 *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_IsRestricted
(
IShellDispatch
2
*
iface
,
BSTR
group
,
BSTR
restriction
,
LONG
*
value
)
static
HRESULT
WINAPI
ShellDispatch_IsRestricted
(
IShellDispatch
5
*
iface
,
BSTR
group
,
BSTR
restriction
,
LONG
*
value
)
{
FIXME
(
"(%s, %s, %p): stub
\n
"
,
debugstr_w
(
group
),
debugstr_w
(
restriction
),
value
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ShellExecute
(
IShellDispatch
2
*
iface
,
BSTR
file
,
VARIANT
args
,
VARIANT
dir
,
static
HRESULT
WINAPI
ShellDispatch_ShellExecute
(
IShellDispatch
5
*
iface
,
BSTR
file
,
VARIANT
args
,
VARIANT
dir
,
VARIANT
op
,
VARIANT
show
)
{
FIXME
(
"(%s): stub
\n
"
,
debugstr_w
(
file
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_FindPrinter
(
IShellDispatch
2
*
iface
,
BSTR
name
,
BSTR
location
,
BSTR
model
)
static
HRESULT
WINAPI
ShellDispatch_FindPrinter
(
IShellDispatch
5
*
iface
,
BSTR
name
,
BSTR
location
,
BSTR
model
)
{
FIXME
(
"(%s, %s, %s): stub
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
location
),
debugstr_w
(
model
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_GetSystemInformation
(
IShellDispatch
2
*
iface
,
BSTR
name
,
VARIANT
*
ret
)
static
HRESULT
WINAPI
ShellDispatch_GetSystemInformation
(
IShellDispatch
5
*
iface
,
BSTR
name
,
VARIANT
*
ret
)
{
FIXME
(
"(%s, %p): stub
\n
"
,
debugstr_w
(
name
),
ret
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ServiceStart
(
IShellDispatch
2
*
iface
,
BSTR
service
,
VARIANT
persistent
,
VARIANT
*
ret
)
static
HRESULT
WINAPI
ShellDispatch_ServiceStart
(
IShellDispatch
5
*
iface
,
BSTR
service
,
VARIANT
persistent
,
VARIANT
*
ret
)
{
FIXME
(
"(%s, %p): stub
\n
"
,
debugstr_w
(
service
),
ret
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ServiceStop
(
IShellDispatch
2
*
iface
,
BSTR
service
,
VARIANT
persistent
,
VARIANT
*
ret
)
static
HRESULT
WINAPI
ShellDispatch_ServiceStop
(
IShellDispatch
5
*
iface
,
BSTR
service
,
VARIANT
persistent
,
VARIANT
*
ret
)
{
FIXME
(
"(%s, %p): stub
\n
"
,
debugstr_w
(
service
),
ret
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_IsServiceRunning
(
IShellDispatch
2
*
iface
,
BSTR
name
,
VARIANT
*
running
)
static
HRESULT
WINAPI
ShellDispatch_IsServiceRunning
(
IShellDispatch
5
*
iface
,
BSTR
name
,
VARIANT
*
running
)
{
SERVICE_STATUS_PROCESS
status
;
SC_HANDLE
scm
,
service
;
...
...
@@ -1083,19 +1086,55 @@ static HRESULT WINAPI ShellDispatch_IsServiceRunning(IShellDispatch2 *iface, BST
return
S_OK
;
}
static
HRESULT
WINAPI
ShellDispatch_CanStartStopService
(
IShellDispatch
2
*
iface
,
BSTR
service
,
VARIANT
*
ret
)
static
HRESULT
WINAPI
ShellDispatch_CanStartStopService
(
IShellDispatch
5
*
iface
,
BSTR
service
,
VARIANT
*
ret
)
{
FIXME
(
"(%s, %p): stub
\n
"
,
debugstr_w
(
service
),
ret
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ShowBrowserBar
(
IShellDispatch
2
*
iface
,
BSTR
clsid
,
VARIANT
show
,
VARIANT
*
ret
)
static
HRESULT
WINAPI
ShellDispatch_ShowBrowserBar
(
IShellDispatch
5
*
iface
,
BSTR
clsid
,
VARIANT
show
,
VARIANT
*
ret
)
{
FIXME
(
"(%s, %p): stub
\n
"
,
debugstr_w
(
clsid
),
ret
);
return
E_NOTIMPL
;
}
static
const
IShellDispatch2Vtbl
ShellDispatch2Vtbl
=
{
static
HRESULT
WINAPI
ShellDispatch_AddToRecent
(
IShellDispatch5
*
iface
,
VARIANT
file
,
BSTR
category
)
{
FIXME
(
"(%s): stub
\n
"
,
debugstr_w
(
category
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_WindowsSecurity
(
IShellDispatch5
*
iface
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ToggleDesktop
(
IShellDispatch5
*
iface
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_ExplorerPolicy
(
IShellDispatch5
*
iface
,
BSTR
policy
,
VARIANT
*
value
)
{
FIXME
(
"(%s, %p): stub
\n
"
,
debugstr_w
(
policy
),
value
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_GetSetting
(
IShellDispatch5
*
iface
,
LONG
setting
,
VARIANT_BOOL
*
result
)
{
FIXME
(
"(%d %p): stub
\n
"
,
setting
,
result
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellDispatch_WindowSwitcher
(
IShellDispatch5
*
iface
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
}
static
const
IShellDispatch5Vtbl
ShellDispatch5Vtbl
=
{
ShellDispatch_QueryInterface
,
ShellDispatch_AddRef
,
ShellDispatch_Release
,
...
...
@@ -1134,7 +1173,13 @@ static const IShellDispatch2Vtbl ShellDispatch2Vtbl = {
ShellDispatch_ServiceStop
,
ShellDispatch_IsServiceRunning
,
ShellDispatch_CanStartStopService
,
ShellDispatch_ShowBrowserBar
ShellDispatch_ShowBrowserBar
,
ShellDispatch_AddToRecent
,
ShellDispatch_WindowsSecurity
,
ShellDispatch_ToggleDesktop
,
ShellDispatch_ExplorerPolicy
,
ShellDispatch_GetSetting
,
ShellDispatch_WindowSwitcher
};
HRESULT
WINAPI
IShellDispatch_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -1150,17 +1195,17 @@ HRESULT WINAPI IShellDispatch_Constructor(IUnknown *outer, REFIID riid, void **p
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ShellDispatch
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IShellDispatch
2_iface
.
lpVtbl
=
&
ShellDispatch2
Vtbl
;
This
->
IShellDispatch
5_iface
.
lpVtbl
=
&
ShellDispatch5
Vtbl
;
This
->
ref
=
1
;
ret
=
load_type_info
(
&
IID_IShellDispatch
2
,
&
This
->
typeinfo
);
ret
=
load_type_info
(
&
IID_IShellDispatch
5
,
&
This
->
typeinfo
);
if
(
FAILED
(
ret
))
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ret
;
}
ret
=
IShellDispatch
2_QueryInterface
(
&
This
->
IShellDispatch2
_iface
,
riid
,
ppv
);
IShellDispatch
2_Release
(
&
This
->
IShellDispatch2
_iface
);
ret
=
IShellDispatch
5_QueryInterface
(
&
This
->
IShellDispatch5
_iface
,
riid
,
ppv
);
IShellDispatch
5_Release
(
&
This
->
IShellDispatch5
_iface
);
return
ret
;
}
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