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
746d129c
Commit
746d129c
authored
Jan 03, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Jan 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shell_GetCachedImageIndex32[A|W] implemented.
parent
cc0248e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
iconcache.c
dlls/shell32/iconcache.c
+28
-2
No files found.
dlls/shell32/iconcache.c
View file @
746d129c
...
...
@@ -638,14 +638,14 @@ DWORD WINAPI SHMapPIDLToSystemImageListIndex(LPSHELLFOLDER sh,LPITEMIDLIST pidl,
DWORD
dwNr
,
ret
=
INVALID_INDEX
;
LPITEMIDLIST
pidltemp
=
ILFindLastID
(
pidl
);
WARN
(
shell
,
"(SF=%p,pidl=%p,0x%08x)
\n
"
,
sh
,
pidl
,
z
);
WARN
(
shell
,
"(SF=%p,pidl=%p,0x%08
l
x)
\n
"
,
sh
,
pidl
,
z
);
pdump
(
pidl
);
if
(
_ILIsDesktop
(
pidltemp
))
{
return
34
;
}
else
if
(
_ILIsMyComputer
(
pidltemp
))
{
if
(
HCR_GetDefaultIcon
(
"CLSID
\\
{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
,
sTemp
,
64
,
&
dwNr
))
{
if
(
HCR_GetDefaultIcon
(
"CLSID
\\
{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
,
sTemp
,
MAX_PATH
,
&
dwNr
))
{
ret
=
SIC_GetIconIndex
(
sTemp
,
dwNr
);
return
((
INVALID_INDEX
==
ret
)
?
15
:
ret
);
}
...
...
@@ -678,6 +678,32 @@ DWORD WINAPI SHMapPIDLToSystemImageListIndex(LPSHELLFOLDER sh,LPITEMIDLIST pidl,
}
/*************************************************************************
* Shell_GetCachedImageIndex [SHELL32.72]
*
*/
INT32
WINAPI
Shell_GetCachedImageIndex32A
(
LPCSTR
szPath
,
INT32
nIndex
,
DWORD
z
)
{
WARN
(
shell
,
"(%s,%08x,%08lx) semi-stub.
\n
"
,
debugstr_a
(
szPath
),
nIndex
,
z
);
return
SIC_GetIconIndex
(
szPath
,
nIndex
);
}
INT32
WINAPI
Shell_GetCachedImageIndex32W
(
LPCWSTR
szPath
,
INT32
nIndex
,
DWORD
z
)
{
INT32
ret
;
LPSTR
sTemp
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
szPath
);
WARN
(
shell
,
"(%s,%08x,%08lx) semi-stub.
\n
"
,
debugstr_w
(
szPath
),
nIndex
,
z
);
ret
=
SIC_GetIconIndex
(
sTemp
,
nIndex
);
HeapFree
(
GetProcessHeap
(),
0
,
sTemp
);
return
ret
;
}
INT32
WINAPI
Shell_GetCachedImageIndex32AW
(
LPCVOID
szPath
,
INT32
nIndex
,
DWORD
z
)
{
if
(
VERSION_OsIsUnicode
())
return
Shell_GetCachedImageIndex32W
(
szPath
,
nIndex
,
z
);
return
Shell_GetCachedImageIndex32A
(
szPath
,
nIndex
,
z
);
}
/*************************************************************************
* ExtracticonEx32 [shell32.189]
*/
HICON32
WINAPI
ExtractIconEx32AW
(
LPVOID
lpszFile
,
INT32
nIconIndex
,
HICON32
*
phiconLarge
,
HICON32
*
phiconSmall
,
UINT32
nIcons
)
...
...
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