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
02b0be7c
Commit
02b0be7c
authored
Feb 20, 2000
by
Juergen Schmied
Committed by
Alexandre Julliard
Feb 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New aPidl handling functions.
parent
ec74593b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
3 deletions
+63
-3
pidl.c
dlls/shell32/pidl.c
+56
-3
pidl.h
dlls/shell32/pidl.h
+7
-0
No files found.
dlls/shell32/pidl.c
View file @
02b0be7c
...
...
@@ -732,7 +732,7 @@ LPITEMIDLIST WINAPI ILCreateFromPathAW (LPCVOID path)
/*************************************************************************
* SHSimpleIDListFromPath [SHELL32.162]
*/
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathA
(
LPSTR
lpszPath
)
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathA
(
LP
C
STR
lpszPath
)
{
LPITEMIDLIST
pidl
=
NULL
;
HANDLE
hFile
;
...
...
@@ -758,7 +758,7 @@ LPITEMIDLIST WINAPI SHSimpleIDListFromPathA (LPSTR lpszPath)
}
return
pidl
;
}
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathW
(
LPWSTR
lpszPath
)
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathW
(
LP
C
WSTR
lpszPath
)
{
char
lpszTemp
[
MAX_PATH
];
TRACE
(
"path=%s
\n
"
,
debugstr_w
(
lpszPath
));
...
...
@@ -768,7 +768,7 @@ LPITEMIDLIST WINAPI SHSimpleIDListFromPathW (LPWSTR lpszPath)
return
SHSimpleIDListFromPathA
(
lpszTemp
);
}
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathAW
(
LPVOID
lpszPath
)
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathAW
(
LP
C
VOID
lpszPath
)
{
if
(
VERSION_OsIsUnicode
())
return
SHSimpleIDListFromPathW
(
lpszPath
);
...
...
@@ -1724,3 +1724,56 @@ DWORD _ILGetFileAttributes(LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
return
wAttrib
;
}
/*************************************************************************
* ILFreeaPidl
*
* free a aPidl struct
*/
void
_ILFreeaPidl
(
LPITEMIDLIST
*
apidl
,
UINT
cidl
)
{
int
i
;
if
(
apidl
)
{
for
(
i
=
0
;
i
<
cidl
;
i
++
)
SHFree
(
apidl
[
i
]);
SHFree
(
apidl
);
}
}
/*************************************************************************
* ILCopyaPidl
*
* copys a aPidl struct
*/
LPITEMIDLIST
*
_ILCopyaPidl
(
LPITEMIDLIST
*
apidlsrc
,
UINT
cidl
)
{
int
i
;
LPITEMIDLIST
*
apidldest
=
(
LPITEMIDLIST
*
)
SHAlloc
(
cidl
*
sizeof
(
LPITEMIDLIST
));
if
(
!
apidlsrc
)
return
NULL
;
for
(
i
=
0
;
i
<
cidl
;
i
++
)
apidldest
[
i
]
=
ILClone
(
apidlsrc
[
i
]);
return
apidldest
;
}
/*************************************************************************
* _ILCopyCidaToaPidl
*
* creates aPidl from CIDA
*/
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
LPCIDA
cida
)
{
int
i
;
LPITEMIDLIST
*
dst
=
(
LPITEMIDLIST
*
)
SHAlloc
(
cida
->
cidl
*
sizeof
(
LPITEMIDLIST
));
if
(
!
dst
)
return
NULL
;
if
(
pidl
)
*
pidl
=
ILClone
((
LPITEMIDLIST
)(
&
((
LPBYTE
)
cida
)[
cida
->
aoffset
[
0
]]));
for
(
i
=
0
;
i
<
cida
->
cidl
;
i
++
)
dst
[
i
]
=
ILClone
((
LPITEMIDLIST
)(
&
((
LPBYTE
)
cida
)[
cida
->
aoffset
[
i
+
1
]]));
return
dst
;
}
dlls/shell32/pidl.h
View file @
02b0be7c
...
...
@@ -168,4 +168,11 @@ REFIID _ILGetGUIDPointer (LPCITEMIDLIST pidl);
void
pdump
(
LPCITEMIDLIST
pidl
);
BOOL
pcheck
(
LPCITEMIDLIST
pidl
);
/*
* aPidl helper
*/
void
_ILFreeaPidl
(
LPITEMIDLIST
*
apidl
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyaPidl
(
LPITEMIDLIST
*
apidlsrc
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
LPCIDA
cida
);
#endif
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