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
03d616b4
Commit
03d616b4
authored
Oct 06, 2022
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement IFolderView2::Items(&IID_IShellItemArray).
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
3ee56808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
+43
-2
shlview.c
dlls/shell32/shlview.c
+43
-2
No files found.
dlls/shell32/shlview.c
View file @
03d616b4
...
...
@@ -2774,8 +2774,49 @@ static HRESULT WINAPI FolderView_ItemCount(IFolderView2 *iface, UINT flags, int
static
HRESULT
WINAPI
FolderView_Items
(
IFolderView2
*
iface
,
UINT
flags
,
REFIID
riid
,
void
**
ppv
)
{
IShellViewImpl
*
This
=
impl_from_IFolderView2
(
iface
);
FIXME
(
"(%p)->(%u %s %p), stub
\n
"
,
This
,
flags
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOTIMPL
;
int
count
,
i
;
ITEMIDLIST
**
pidl
;
LVITEMW
item
;
HRESULT
hr
;
if
(
!
IsEqualIID
(
riid
,
&
IID_IShellItemArray
))
{
FIXME
(
"%s is not supported
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
if
(
flags
!=
SVGIO_ALLVIEW
)
FIXME
(
"some flags unsupported, %x
\n
"
,
flags
&
~
SVGIO_ALLVIEW
);
count
=
SendMessageW
(
This
->
hWndList
,
LVM_GETITEMCOUNT
,
0
,
0
);
if
(
!
count
)
{
FIXME
(
"Folder is empty
\n
"
);
return
E_FAIL
;
}
pidl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
*
pidl
));
if
(
!
pidl
)
return
E_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
i
;
if
(
!
SendMessageW
(
This
->
hWndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
item
))
{
FIXME
(
"LVM_GETITEMW(%d) failed
\n
"
,
i
);
HeapFree
(
GetProcessHeap
(),
0
,
pidl
);
return
E_FAIL
;
}
pidl
[
i
]
=
(
ITEMIDLIST
*
)
item
.
lParam
;
}
hr
=
SHCreateShellItemArray
(
NULL
,
This
->
pSFParent
,
count
,
(
LPCITEMIDLIST
*
)
pidl
,
(
IShellItemArray
**
)
ppv
);
HeapFree
(
GetProcessHeap
(),
0
,
pidl
);
return
hr
;
}
static
HRESULT
WINAPI
FolderView_GetSelectionMarkedItem
(
IFolderView2
*
iface
,
int
*
item
)
...
...
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