Added stub implementation with correct prototypes for
ExtractAssociatedIconExA/W.
This commit is contained in:
parent
9e2ab03883
commit
e2b06d2a10
|
@ -497,26 +497,34 @@ HICON WINAPI ExtractAssociatedIconA(HINSTANCE hInst, LPSTR lpIconPath, LPWORD lp
|
|||
return hIcon;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* ExtractAssociatedIconExA (SHELL32.@)
|
||||
*
|
||||
* Return icon for given file (either from file itself or from associated
|
||||
* executable) and patch parameters if needed.
|
||||
*/
|
||||
HICON WINAPI ExtractAssociatedIconExA(DWORD d1, DWORD d2, DWORD d3, DWORD d4)
|
||||
{
|
||||
FIXME("(%lx %lx %lx %lx): stub\n", d1, d2, d3, d4);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* ExtractAssociatedIconExW (SHELL32.@)
|
||||
*
|
||||
* Return icon for given file (either from file itself or from associated
|
||||
* executable) and patch parameters if needed.
|
||||
*/
|
||||
HICON WINAPI ExtractAssociatedIconExW(DWORD d1, DWORD d2, DWORD d3, DWORD d4)
|
||||
HICON WINAPI ExtractAssociatedIconExW(HINSTANCE hInst, LPWSTR lpIconPath, LPWORD lpiIconIdx, LPWORD lpiIconId)
|
||||
{
|
||||
FIXME("(%lx %lx %lx %lx): stub\n", d1, d2, d3, d4);
|
||||
FIXME("%p %s %p %p): stub\n", hInst, debugstr_w(lpIconPath), lpiIconIdx, lpiIconId);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* ExtractAssociatedIconExA (SHELL32.@)
|
||||
*
|
||||
* Return icon for given file (either from file itself or from associated
|
||||
* executable) and patch parameters if needed.
|
||||
*/
|
||||
HICON WINAPI ExtractAssociatedIconExA(HINSTANCE hInst, LPSTR lpIconPath, LPWORD lpiIconIdx, LPWORD lpiIconId)
|
||||
{
|
||||
HICON ret;
|
||||
INT len = MultiByteToWideChar( CP_ACP, 0, lpIconPath, -1, NULL, 0 );
|
||||
LPWSTR lpwstrFile = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) );
|
||||
|
||||
TRACE("%p %s %p %p)\n", hInst, lpIconPath, lpiIconIdx, lpiIconId);
|
||||
|
||||
MultiByteToWideChar( CP_ACP, 0, lpIconPath, -1, lpwstrFile, len );
|
||||
ret = ExtractAssociatedIconExW(hInst, lpwstrFile, lpiIconIdx, lpiIconId);
|
||||
HeapFree(GetProcessHeap(), 0, lpwstrFile);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -321,8 +321,8 @@
|
|||
@ stub DragQueryFileAorW
|
||||
@ stdcall DuplicateIcon(long long) DuplicateIcon
|
||||
@ stdcall ExtractAssociatedIconA(long ptr long)ExtractAssociatedIconA
|
||||
@ stdcall ExtractAssociatedIconExA(long long long long)ExtractAssociatedIconExA
|
||||
@ stdcall ExtractAssociatedIconExW(long long long long)ExtractAssociatedIconExW
|
||||
@ stdcall ExtractAssociatedIconExA(long str long long) ExtractAssociatedIconExA
|
||||
@ stdcall ExtractAssociatedIconExW(long wstr long long) ExtractAssociatedIconExW
|
||||
@ stub ExtractAssociatedIconW
|
||||
@ stdcall ExtractIconA(long str long)ExtractIconA
|
||||
@ stdcall ExtractIconEx(ptr long ptr ptr long)ExtractIconExAW
|
||||
|
|
|
@ -270,6 +270,9 @@ HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
|
|||
HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
|
||||
HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
|
||||
#define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
|
||||
HICON WINAPI ExtractAssociatedIconExA(HINSTANCE,LPSTR,LPWORD,LPWORD);
|
||||
HICON WINAPI ExtractAssociatedIconExW(HINSTANCE,LPWSTR,LPWORD,LPWORD);
|
||||
#define ExtractAssociatedIconEx WINELIB_NAME_AW(ExtractAssociatedIconEx)
|
||||
HICON WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
|
||||
HICON WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
|
||||
#define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
|
||||
|
|
Loading…
Reference in New Issue