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
6d89f58e
Commit
6d89f58e
authored
Nov 29, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Added stub implementation of ICustomDestinationList.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68f22743
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
1 deletion
+179
-1
shell32_classes.idl
dlls/shell32/shell32_classes.idl
+6
-0
shell32_main.h
dlls/shell32/shell32_main.h
+2
-0
shellitem.c
dlls/shell32/shellitem.c
+170
-1
shellole.c
dlls/shell32/shellole.c
+1
-0
No files found.
dlls/shell32/shell32_classes.idl
View file @
6d89f58e
...
...
@@ -148,3 +148,9 @@ coclass KnownFolderManager { interface IKnownFolderManager; }
threading
(
apartment
),
uuid
(
53b
d6b4e
-
3780
-
4693
-
afc3
-
7161
c2f3ee9c
)
]
coclass
MruLongList
{
}
[
helpstring
(
"Custom Destination List"
),
threading
(
apartment
),
uuid
(
77
f10cf0
-
3
db5
-
4966
-
b520
-
b7c54fd35ed6
)
]
coclass
DestinationList
{
interface
ICustomDestinationList
; }
dlls/shell32/shell32_main.h
View file @
6d89f58e
...
...
@@ -110,6 +110,8 @@ HRESULT IShellLink_ConstructFromFile(IUnknown * pUnkOuter, REFIID riid, LPCITEMI
LPEXTRACTICONA
IExtractIconA_Constructor
(
LPCITEMIDLIST
)
DECLSPEC_HIDDEN
;
LPEXTRACTICONW
IExtractIconW_Constructor
(
LPCITEMIDLIST
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
CustomDestinationList_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
void
**
obj
)
DECLSPEC_HIDDEN
;
/* initialisation for FORMATETC */
#define InitFormatEtc(fe, cf, med) \
{\
...
...
dlls/shell32/shellitem.c
View file @
6d89f58e
...
...
@@ -44,17 +44,25 @@ typedef struct _ShellItem {
IPersistIDList
IPersistIDList_iface
;
}
ShellItem
;
typedef
struct
_CustomDestinationList
{
ICustomDestinationList
ICustomDestinationList_iface
;
LONG
ref
;
}
CustomDestinationList
;
static
inline
ShellItem
*
impl_from_IShellItem2
(
IShellItem2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ShellItem
,
IShellItem2_iface
);
}
static
inline
ShellItem
*
impl_from_IPersistIDList
(
IPersistIDList
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ShellItem
,
IPersistIDList_iface
);
}
static
inline
CustomDestinationList
*
impl_from_ICustomDestinationList
(
ICustomDestinationList
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
CustomDestinationList
,
ICustomDestinationList_iface
);
}
static
HRESULT
WINAPI
ShellItem_QueryInterface
(
IShellItem2
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -1322,3 +1330,164 @@ HRESULT WINAPI SHCreateShellItemArrayFromIDLists(UINT cidl,
*
psia
=
NULL
;
return
ret
;
}
static
HRESULT
WINAPI
CustomDestinationList_QueryInterface
(
ICustomDestinationList
*
iface
,
REFIID
riid
,
void
**
obj
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
obj
);
if
(
IsEqualIID
(
&
IID_ICustomDestinationList
,
riid
)
||
IsEqualIID
(
&
IID_IUnknown
,
riid
))
{
*
obj
=
&
This
->
ICustomDestinationList_iface
;
}
else
{
FIXME
(
"not implemented for %s
\n
"
,
shdebugstr_guid
(
riid
));
*
obj
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
obj
);
return
S_OK
;
}
static
ULONG
WINAPI
CustomDestinationList_AddRef
(
ICustomDestinationList
*
iface
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
CustomDestinationList_Release
(
ICustomDestinationList
*
iface
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
HRESULT
WINAPI
CustomDestinationList_SetAppID
(
ICustomDestinationList
*
iface
,
const
WCHAR
*
appid
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p (%s): stub
\n
"
,
This
,
debugstr_w
(
appid
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_BeginList
(
ICustomDestinationList
*
iface
,
UINT
*
min_slots
,
REFIID
riid
,
void
**
obj
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p (%p %s %p): stub
\n
"
,
This
,
min_slots
,
debugstr_guid
(
riid
),
obj
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_AppendCategory
(
ICustomDestinationList
*
iface
,
const
WCHAR
*
category
,
IObjectArray
*
array
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p (%s %p): stub
\n
"
,
This
,
debugstr_w
(
category
),
array
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_AppendKnownCategory
(
ICustomDestinationList
*
iface
,
KNOWNDESTCATEGORY
category
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p (%d): stub
\n
"
,
This
,
category
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_AddUserTasks
(
ICustomDestinationList
*
iface
,
IObjectArray
*
tasks
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p (%p): stub
\n
"
,
This
,
tasks
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_CommitList
(
ICustomDestinationList
*
iface
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p: stub
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_GetRemovedDestinations
(
ICustomDestinationList
*
iface
,
REFIID
riid
,
void
**
obj
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p (%s %p): stub
\n
"
,
This
,
debugstr_guid
(
riid
),
obj
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_DeleteList
(
ICustomDestinationList
*
iface
,
const
WCHAR
*
appid
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p (%s): stub
\n
"
,
This
,
debugstr_w
(
appid
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CustomDestinationList_AbortList
(
ICustomDestinationList
*
iface
)
{
CustomDestinationList
*
This
=
impl_from_ICustomDestinationList
(
iface
);
FIXME
(
"%p: stub
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
const
ICustomDestinationListVtbl
CustomDestinationListVtbl
=
{
CustomDestinationList_QueryInterface
,
CustomDestinationList_AddRef
,
CustomDestinationList_Release
,
CustomDestinationList_SetAppID
,
CustomDestinationList_BeginList
,
CustomDestinationList_AppendCategory
,
CustomDestinationList_AppendKnownCategory
,
CustomDestinationList_AddUserTasks
,
CustomDestinationList_CommitList
,
CustomDestinationList_GetRemovedDestinations
,
CustomDestinationList_DeleteList
,
CustomDestinationList_AbortList
};
HRESULT
WINAPI
CustomDestinationList_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
void
**
obj
)
{
CustomDestinationList
*
list
;
HRESULT
hr
;
TRACE
(
"%p %s %p
\n
"
,
outer
,
debugstr_guid
(
riid
),
obj
);
if
(
outer
)
return
CLASS_E_NOAGGREGATION
;
if
(
!
(
list
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
list
))))
return
E_OUTOFMEMORY
;
list
->
ICustomDestinationList_iface
.
lpVtbl
=
&
CustomDestinationListVtbl
;
list
->
ref
=
1
;
hr
=
ICustomDestinationList_QueryInterface
(
&
list
->
ICustomDestinationList_iface
,
riid
,
obj
);
ICustomDestinationList_Release
(
&
list
->
ICustomDestinationList_iface
);
return
hr
;
}
dlls/shell32/shellole.c
View file @
6d89f58e
...
...
@@ -83,6 +83,7 @@ static const struct {
{
&
CLSID_ExplorerBrowser
,
ExplorerBrowser_Constructor
},
{
&
CLSID_KnownFolderManager
,
KnownFolderManager_Constructor
},
{
&
CLSID_Shell
,
IShellDispatch_Constructor
},
{
&
CLSID_DestinationList
,
CustomDestinationList_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