Implemented DuplicateIcon().
This commit is contained in:
parent
c0b2b9e175
commit
afe9bb814d
|
@ -335,7 +335,7 @@ import kernel32.dll
|
||||||
@ stdcall DoEnvironmentSubstA(str str)DoEnvironmentSubstA
|
@ stdcall DoEnvironmentSubstA(str str)DoEnvironmentSubstA
|
||||||
@ stdcall DoEnvironmentSubstW(wstr wstr)DoEnvironmentSubstW
|
@ stdcall DoEnvironmentSubstW(wstr wstr)DoEnvironmentSubstW
|
||||||
@ stub DragQueryFileAorW
|
@ stub DragQueryFileAorW
|
||||||
@ stub DuplicateIcon
|
@ stdcall DuplicateIcon(long long) DuplicateIcon
|
||||||
@ stdcall ExtractAssociatedIconA(long ptr long)ExtractAssociatedIconA
|
@ stdcall ExtractAssociatedIconA(long ptr long)ExtractAssociatedIconA
|
||||||
@ stub ExtractAssociatedIconExA
|
@ stub ExtractAssociatedIconExA
|
||||||
@ stub ExtractAssociatedIconExW
|
@ stub ExtractAssociatedIconExW
|
||||||
|
|
|
@ -297,6 +297,29 @@ DWORD WINAPI SHGetFileInfoAW(
|
||||||
return SHGetFileInfoA(path, dwFileAttributes, psfi, sizeofpsfi, flags );
|
return SHGetFileInfoA(path, dwFileAttributes, psfi, sizeofpsfi, flags );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* 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]
|
* ExtractIconA [SHELL32.133]
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue