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
e947844a
Commit
e947844a
authored
Jul 15, 2021
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement SHBindToObject.
Based on SHBindToParent implementation. Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8bdfb41e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
pidl.c
dlls/shell32/pidl.c
+35
-0
shell32.spec
dlls/shell32/shell32.spec
+1
-0
No files found.
dlls/shell32/pidl.c
View file @
e947844a
...
...
@@ -1333,6 +1333,41 @@ HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCI
return
hr
;
}
HRESULT
WINAPI
SHBindToObject
(
IShellFolder
*
psf
,
LPCITEMIDLIST
pidl
,
IBindCtx
*
pbc
,
REFIID
riid
,
void
**
ppv
)
{
IShellFolder
*
psfDesktop
=
NULL
;
HRESULT
hr
;
TRACE_
(
shell
)(
"%p,%p,%p,%s,%p
\n
"
,
psf
,
pidl
,
pbc
,
debugstr_guid
(
riid
),
ppv
);
pdump
(
pidl
);
if
(
!
ppv
)
return
E_INVALIDARG
;
*
ppv
=
NULL
;
if
(
!
psf
)
{
hr
=
SHGetDesktopFolder
(
&
psfDesktop
);
if
(
FAILED
(
hr
))
return
hr
;
psf
=
psfDesktop
;
}
if
(
_ILIsPidlSimple
(
pidl
))
/* we are on desktop level */
hr
=
IShellFolder_QueryInterface
(
psf
,
riid
,
ppv
);
else
hr
=
IShellFolder_BindToObject
(
psf
,
pidl
,
pbc
,
riid
,
ppv
);
if
(
psfDesktop
)
IShellFolder_Release
(
psfDesktop
);
TRACE_
(
shell
)(
"-- ppv=%p ret=0x%08x
\n
"
,
*
ppv
,
hr
);
return
hr
;
}
/*************************************************************************
* SHParseDisplayName [SHELL32.@]
*/
...
...
dlls/shell32/shell32.spec
View file @
e947844a
...
...
@@ -332,6 +332,7 @@
@ stdcall SHAddToRecentDocs (long ptr)
@ stdcall SHAppBarMessage(long ptr)
@ stdcall SHAssocEnumHandlers(wstr long ptr)
@ stdcall SHBindToObject(ptr ptr ptr ptr ptr)
@ stdcall SHBindToParent(ptr ptr ptr ptr)
@ stdcall SHBrowseForFolder(ptr) SHBrowseForFolderA
@ stdcall SHBrowseForFolderA(ptr)
...
...
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