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
afe9bb81
Commit
afe9bb81
authored
Aug 20, 2000
by
Chris Morgan
Committed by
Alexandre Julliard
Aug 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented DuplicateIcon().
parent
c0b2b9e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
shell32.spec
dlls/shell32/shell32.spec
+1
-1
shell32_main.c
dlls/shell32/shell32_main.c
+23
-0
No files found.
dlls/shell32/shell32.spec
View file @
afe9bb81
...
...
@@ -335,7 +335,7 @@ import kernel32.dll
@ stdcall DoEnvironmentSubstA(str str)DoEnvironmentSubstA
@ stdcall DoEnvironmentSubstW(wstr wstr)DoEnvironmentSubstW
@ stub DragQueryFileAorW
@ st
ub
DuplicateIcon
@ st
dcall DuplicateIcon(long long)
DuplicateIcon
@ stdcall ExtractAssociatedIconA(long ptr long)ExtractAssociatedIconA
@ stub ExtractAssociatedIconExA
@ stub ExtractAssociatedIconExW
...
...
dlls/shell32/shell32_main.c
View file @
afe9bb81
...
...
@@ -298,6 +298,29 @@ DWORD WINAPI SHGetFileInfoAW(
}
/*************************************************************************
* DuplicateIcon [SHELL32.188]
*/
HICON
WINAPI
DuplicateIcon
(
HINSTANCE
hInstance
,
HICON
hIcon
)
{
ICONINFO
IconInfo
;
HICON
hDupIcon
=
NULL
;
TRACE
(
"(%04x, %04x)
\n
"
,
hInstance
,
hIcon
);
if
(
GetIconInfo
(
hIcon
,
&
IconInfo
))
{
hDupIcon
=
CreateIconIndirect
(
&
IconInfo
);
/* clean up hbmMask and hbmColor */
DeleteObject
(
IconInfo
.
hbmMask
);
DeleteObject
(
IconInfo
.
hbmColor
);
}
return
hDupIcon
;
}
/*************************************************************************
* ExtractIconA [SHELL32.133]
*
* fixme
...
...
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