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
628e3e0f
Commit
628e3e0f
authored
Jan 23, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented ExtractIconEx16, added some consts to ExtractIconEx*.
parent
18aacf15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
8 deletions
+40
-8
iconcache.c
dlls/shell32/iconcache.c
+3
-3
shell.spec
if1632/shell.spec
+1
-1
shell.h
include/shell.h
+4
-3
shell.c
misc/shell.c
+32
-1
No files found.
dlls/shell32/iconcache.c
View file @
628e3e0f
...
@@ -706,7 +706,7 @@ INT32 WINAPI Shell_GetCachedImageIndex32AW(LPCVOID szPath, INT32 nIndex, DWORD z
...
@@ -706,7 +706,7 @@ INT32 WINAPI Shell_GetCachedImageIndex32AW(LPCVOID szPath, INT32 nIndex, DWORD z
/*************************************************************************
/*************************************************************************
* ExtracticonEx32 [shell32.189]
* ExtracticonEx32 [shell32.189]
*/
*/
HICON32
WINAPI
ExtractIconEx32AW
(
LPVOID
lpszFile
,
INT32
nIconIndex
,
HICON32
*
phiconLarge
,
HICON32
*
phiconSmall
,
UINT32
nIcons
)
HICON32
WINAPI
ExtractIconEx32AW
(
LP
C
VOID
lpszFile
,
INT32
nIconIndex
,
HICON32
*
phiconLarge
,
HICON32
*
phiconSmall
,
UINT32
nIcons
)
{
if
(
VERSION_OsIsUnicode
())
{
if
(
VERSION_OsIsUnicode
())
return
ExtractIconEx32W
(
lpszFile
,
nIconIndex
,
phiconLarge
,
phiconSmall
,
nIcons
);
return
ExtractIconEx32W
(
lpszFile
,
nIconIndex
,
phiconLarge
,
phiconSmall
,
nIcons
);
return
ExtractIconEx32A
(
lpszFile
,
nIconIndex
,
phiconLarge
,
phiconSmall
,
nIcons
);
return
ExtractIconEx32A
(
lpszFile
,
nIconIndex
,
phiconLarge
,
phiconSmall
,
nIcons
);
...
@@ -718,7 +718,7 @@ HICON32 WINAPI ExtractIconEx32AW ( LPVOID lpszFile, INT32 nIconIndex, HICON32 *
...
@@ -718,7 +718,7 @@ HICON32 WINAPI ExtractIconEx32AW ( LPVOID lpszFile, INT32 nIconIndex, HICON32 *
* 1 file is not valid
* 1 file is not valid
* HICON32 handle of a icon (phiconLarge/Small == NULL)
* HICON32 handle of a icon (phiconLarge/Small == NULL)
*/
*/
HICON32
WINAPI
ExtractIconEx32A
(
LPSTR
lpszFile
,
INT32
nIconIndex
,
HICON32
*
phiconLarge
,
HICON32
*
phiconSmall
,
UINT32
nIcons
)
HICON32
WINAPI
ExtractIconEx32A
(
LP
C
STR
lpszFile
,
INT32
nIconIndex
,
HICON32
*
phiconLarge
,
HICON32
*
phiconSmall
,
UINT32
nIcons
)
{
HICON32
ret
=
0
;
{
HICON32
ret
=
0
;
TRACE
(
shell
,
"file=%s idx=%i %p %p num=%i
\n
"
,
lpszFile
,
nIconIndex
,
phiconLarge
,
phiconSmall
,
nIcons
);
TRACE
(
shell
,
"file=%s idx=%i %p %p num=%i
\n
"
,
lpszFile
,
nIconIndex
,
phiconLarge
,
phiconSmall
,
nIcons
);
...
@@ -750,7 +750,7 @@ HICON32 WINAPI ExtractIconEx32A ( LPSTR lpszFile, INT32 nIconIndex, HICON32 * ph
...
@@ -750,7 +750,7 @@ HICON32 WINAPI ExtractIconEx32A ( LPSTR lpszFile, INT32 nIconIndex, HICON32 * ph
/*************************************************************************
/*************************************************************************
* ExtracticonEx32W [shell32.191]
* ExtracticonEx32W [shell32.191]
*/
*/
HICON32
WINAPI
ExtractIconEx32W
(
LPWSTR
lpszFile
,
INT32
nIconIndex
,
HICON32
*
phiconLarge
,
HICON32
*
phiconSmall
,
UINT32
nIcons
)
HICON32
WINAPI
ExtractIconEx32W
(
LP
C
WSTR
lpszFile
,
INT32
nIconIndex
,
HICON32
*
phiconLarge
,
HICON32
*
phiconSmall
,
UINT32
nIcons
)
{
LPSTR
sFile
;
{
LPSTR
sFile
;
DWORD
ret
;
DWORD
ret
;
...
...
if1632/shell.spec
View file @
628e3e0f
...
@@ -21,7 +21,7 @@ type win16
...
@@ -21,7 +21,7 @@ type win16
37 pascal DoEnvironmentSubst(ptr word) DoEnvironmentSubst
37 pascal DoEnvironmentSubst(ptr word) DoEnvironmentSubst
38 pascal FindEnvironmentString(ptr) FindEnvironmentString
38 pascal FindEnvironmentString(ptr) FindEnvironmentString
39 pascal16 InternalExtractIcon(word ptr s_word word) InternalExtractIcon
39 pascal16 InternalExtractIcon(word ptr s_word word) InternalExtractIcon
40
stub ExtractIconEx
40
pascal16 ExtractIconEx(str word ptr ptr word) ExtractIconEx16
# 98 stub SHL3216_THUNKDATA16
# 98 stub SHL3216_THUNKDATA16
# 99 stub SHL1632_THUNKDATA16
# 99 stub SHL1632_THUNKDATA16
...
...
include/shell.h
View file @
628e3e0f
...
@@ -311,10 +311,11 @@ LPWSTR WINAPI StrFormatByteSize32W ( DWORD dw, LPWSTR pszBuf, UINT32 cchBuf );
...
@@ -311,10 +311,11 @@ LPWSTR WINAPI StrFormatByteSize32W ( DWORD dw, LPWSTR pszBuf, UINT32 cchBuf );
/****************************************************************************
/****************************************************************************
* other functions
* other functions
*/
*/
HICON32
WINAPI
ExtractIconEx32A
(
LPSTR
,
INT32
,
HICON32
*
,
HICON32
*
,
UINT32
);
HICON16
WINAPI
ExtractIconEx16
(
LPCSTR
,
INT16
,
HICON16
*
,
HICON16
*
,
UINT16
);
HICON32
WINAPI
ExtractIconEx32W
(
LPWSTR
,
INT32
,
HICON32
*
,
HICON32
*
,
UINT32
);
HICON32
WINAPI
ExtractIconEx32A
(
LPCSTR
,
INT32
,
HICON32
*
,
HICON32
*
,
UINT32
);
HICON32
WINAPI
ExtractIconEx32W
(
LPCWSTR
,
INT32
,
HICON32
*
,
HICON32
*
,
UINT32
);
#define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
#define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
HICON32
WINAPI
ExtractIconEx32AW
(
LP
VOID
,
INT32
,
HICON32
*
,
HICON32
*
,
UINT32
);
HICON32
WINAPI
ExtractIconEx32AW
(
LPC
VOID
,
INT32
,
HICON32
*
,
HICON32
*
,
UINT32
);
LPVOID
WINAPI
SHAlloc
(
DWORD
len
);
LPVOID
WINAPI
SHAlloc
(
DWORD
len
);
DWORD
WINAPI
SHFree
(
LPVOID
x
);
DWORD
WINAPI
SHFree
(
LPVOID
x
);
...
...
misc/shell.c
View file @
628e3e0f
...
@@ -875,7 +875,38 @@ HICON16 WINAPI ExtractIcon16( HINSTANCE16 hInstance, LPCSTR lpszExeFileName,
...
@@ -875,7 +875,38 @@ HICON16 WINAPI ExtractIcon16( HINSTANCE16 hInstance, LPCSTR lpszExeFileName,
return
ExtractIcon32A
(
hInstance
,
lpszExeFileName
,
nIconIndex
);
return
ExtractIcon32A
(
hInstance
,
lpszExeFileName
,
nIconIndex
);
}
}
/*************************************************************************
* ExtractIconEx16 (SHELL.40)
*/
HICON16
WINAPI
ExtractIconEx16
(
LPCSTR
lpszFile
,
INT16
nIconIndex
,
HICON16
*
phiconLarge
,
HICON16
*
phiconSmall
,
UINT16
nIcons
)
{
HICON32
*
ilarge
,
*
ismall
;
UINT16
ret
;
int
i
;
if
(
phiconLarge
)
ilarge
=
(
HICON32
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
nIcons
*
sizeof
(
HICON32
));
else
ilarge
=
NULL
;
if
(
phiconSmall
)
ismall
=
(
HICON32
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
nIcons
*
sizeof
(
HICON32
));
else
ismall
=
NULL
;
ret
=
ExtractIconEx32A
(
lpszFile
,
nIconIndex
,
ilarge
,
ismall
,
nIcons
);
if
(
ilarge
)
{
for
(
i
=
0
;
i
<
nIcons
;
i
++
)
phiconLarge
[
i
]
=
ilarge
[
i
];
HeapFree
(
GetProcessHeap
(),
0
,
ilarge
);
}
if
(
ismall
)
{
for
(
i
=
0
;
i
<
nIcons
;
i
++
)
phiconSmall
[
i
]
=
ismall
[
i
];
HeapFree
(
GetProcessHeap
(),
0
,
ismall
);
}
return
ret
;
}
/*************************************************************************
/*************************************************************************
* ExtractAssociatedIcon [SHELL.36]
* ExtractAssociatedIcon [SHELL.36]
...
...
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