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
74bcd4e4
Commit
74bcd4e4
authored
Jan 21, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Jan 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented SHGetRealIDL().
parent
9672b791
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
3 deletions
+38
-3
pidl.c
dlls/shell32/pidl.c
+38
-3
No files found.
dlls/shell32/pidl.c
View file @
74bcd4e4
...
...
@@ -29,6 +29,9 @@
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
...
...
@@ -688,6 +691,7 @@ LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
/* TRACE(pidl,"--new pidl=%p\n",pidlNew);*/
return
pidlNew
;
}
/*************************************************************************
* SHGetRealIDL [SHELL32.98]
*
...
...
@@ -695,10 +699,41 @@ LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
*/
HRESULT
WINAPI
SHGetRealIDL
(
LPSHELLFOLDER
lpsf
,
LPCITEMIDLIST
pidlSimple
,
LPITEMIDLIST
*
pidlReal
)
{
FIXME
(
"sf=%p pidlSimple=%p pidlReal=%p
\n
"
,
lpsf
,
pidlSimple
,
pidlReal
);
IDataObject
*
pDataObj
;
HRESULT
hr
=
IShellFolder_GetUIObjectOf
(
lpsf
,
0
,
1
,
&
pidlSimple
,
&
IID_IDataObject
,
0
,
(
LPVOID
*
)
&
pDataObj
);
pdump
(
pidlSimple
);
return
0
;
if
(
SUCCEEDED
(
hr
))
{
STGMEDIUM
medium
;
FORMATETC
fmt
;
fmt
.
cfFormat
=
RegisterClipboardFormatA
(
CFSTR_SHELLIDLIST
);
fmt
.
ptd
=
NULL
;
fmt
.
dwAspect
=
DVASPECT_CONTENT
;
fmt
.
lindex
=
-
1
;
fmt
.
tymed
=
TYMED_HGLOBAL
;
hr
=
IDataObject_GetData
(
pDataObj
,
&
fmt
,
&
medium
);
IDataObject_Release
(
pDataObj
);
if
(
SUCCEEDED
(
hr
))
{
/*assert(pida->cidl==1);*/
LPIDA
pida
=
(
LPIDA
)
GlobalLock
(
medium
.
u
.
hGlobal
);
LPCITEMIDLIST
pidl_folder
=
(
LPCITEMIDLIST
)
((
LPBYTE
)
pida
+
pida
->
aoffset
[
0
]);
LPCITEMIDLIST
pidl_child
=
(
LPCITEMIDLIST
)
((
LPBYTE
)
pida
+
pida
->
aoffset
[
1
]);
*
pidlReal
=
ILCombine
(
pidl_folder
,
pidl_child
);
if
(
!*
pidlReal
)
hr
=
E_OUTOFMEMORY
;
GlobalUnlock
(
medium
.
u
.
hGlobal
);
GlobalFree
(
medium
.
u
.
hGlobal
);
}
}
return
hr
;
}
/*************************************************************************
...
...
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