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
eafc9e84
Commit
eafc9e84
authored
Apr 25, 2013
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add a semi-stub for SHGetStockIconInfo.
parent
0fa2eddc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
iconcache.c
dlls/shell32/iconcache.c
+41
-0
shell32.spec
dlls/shell32/shell32.spec
+1
-0
No files found.
dlls/shell32/iconcache.c
View file @
eafc9e84
...
...
@@ -876,3 +876,44 @@ INT WINAPI SHGetIconOverlayIndexW(LPCWSTR pszIconPath, INT iIconIndex)
return
-
1
;
}
/****************************************************************************
* SHGetStockIconInfo [SHELL32.@]
*
* Receive informations for builtin icons
*
* PARAMS
* id [I] selected icon-id to get informations
* flags [I] select informations to receive
* sii [IO] SHSTOCKICONINFO structure to fill
*
* RETURNS
* Success: S_OK
* Failure: A HRESULT failure code
*
*/
HRESULT
WINAPI
SHGetStockIconInfo
(
SHSTOCKICONID
id
,
UINT
flags
,
SHSTOCKICONINFO
*
sii
)
{
static
const
WCHAR
shell32dll
[]
=
{
'\\'
,
's'
,
'h'
,
'e'
,
'l'
,
'l'
,
'3'
,
'2'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
FIXME
(
"(%d, 0x%x, %p) semi-stub
\n
"
,
id
,
flags
,
sii
);
if
((
id
<
0
)
||
(
id
>=
SIID_MAX_ICONS
)
||
!
sii
||
(
sii
->
cbSize
!=
sizeof
(
SHSTOCKICONINFO
)))
{
return
E_INVALIDARG
;
}
GetSystemDirectoryW
(
sii
->
szPath
,
MAX_PATH
);
/* no icons defined: use default */
sii
->
iIcon
=
-
IDI_SHELL_DOCUMENT
,
lstrcatW
(
sii
->
szPath
,
shell32dll
);
if
(
flags
)
FIXME
(
"flags 0x%x not implemented
\n
"
,
flags
);
sii
->
hIcon
=
NULL
;
sii
->
iSysImageIndex
=
-
1
;
TRACE
(
"%3d: returning %s (%d)
\n
"
,
id
,
debugstr_w
(
sii
->
szPath
),
sii
->
iIcon
);
return
S_OK
;
}
dlls/shell32/shell32.spec
View file @
eafc9e84
...
...
@@ -388,6 +388,7 @@
@ stdcall SHGetSpecialFolderLocation(long long ptr)
@ stdcall SHGetSpecialFolderPathA(long ptr long long)
@ stdcall SHGetSpecialFolderPathW(long ptr long long)
@ stdcall SHGetStockIconInfo(long long ptr)
@ stdcall SHHelpShortcuts_RunDLL(long long long long) SHHelpShortcuts_RunDLLA
@ stdcall SHHelpShortcuts_RunDLLA(long long long long)
@ stdcall SHHelpShortcuts_RunDLLW(long long long long)
...
...
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