Printer_LoadIconsW: implemented minimal version.
This commit is contained in:
parent
e6cee96df8
commit
b6b4787e95
|
@ -189,7 +189,7 @@
|
||||||
202 stub SHLocalReAlloc
|
202 stub SHLocalReAlloc
|
||||||
203 stub AddCommasW
|
203 stub AddCommasW
|
||||||
204 stub ShortSizeFormatW
|
204 stub ShortSizeFormatW
|
||||||
205 stub Printer_LoadIconsW
|
205 stdcall Printer_LoadIconsW(wstr ptr ptr)
|
||||||
206 stub Link_AddExtraDataSection
|
206 stub Link_AddExtraDataSection
|
||||||
207 stub Link_ReadExtraDataSection
|
207 stub Link_ReadExtraDataSection
|
||||||
208 stub Link_RemoveExtraDataSection
|
208 stub Link_RemoveExtraDataSection
|
||||||
|
|
|
@ -718,6 +718,37 @@ HICON WINAPI ExtractIconW(HINSTANCE hInstance, LPCWSTR lpszFile, UINT nIconIndex
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* Printer_LoadIconsW [SHELL32.205]
|
||||||
|
*/
|
||||||
|
VOID WINAPI Printer_LoadIconsW(LPCWSTR wsPrinterName, HICON * pLargeIcon, HICON * pSmallIcon)
|
||||||
|
{
|
||||||
|
INT iconindex=IDI_SHELL_PRINTER;
|
||||||
|
|
||||||
|
TRACE("(%s, %p, %p)\n", debugstr_w(wsPrinterName), pLargeIcon, pSmallIcon);
|
||||||
|
|
||||||
|
/* We should check if wsPrinterName is
|
||||||
|
1. the Default Printer or not
|
||||||
|
2. connected or not
|
||||||
|
3. a Local Printer or a Network-Printer
|
||||||
|
and use different Icons
|
||||||
|
*/
|
||||||
|
|
||||||
|
FIXME("(select Icon by PrinterName %s not implemented)\n", debugstr_w(wsPrinterName));
|
||||||
|
|
||||||
|
if(pLargeIcon != NULL)
|
||||||
|
*pLargeIcon = LoadImageW(shell32_hInstance,
|
||||||
|
(LPCWSTR) MAKEINTRESOURCE(iconindex), IMAGE_ICON,
|
||||||
|
0, 0, LR_DEFAULTCOLOR|LR_DEFAULTSIZE);
|
||||||
|
|
||||||
|
if(pSmallIcon != NULL)
|
||||||
|
*pSmallIcon = LoadImageW(shell32_hInstance,
|
||||||
|
(LPCWSTR) MAKEINTRESOURCE(iconindex), IMAGE_ICON,
|
||||||
|
16, 16, LR_DEFAULTCOLOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
LPCWSTR szApp;
|
LPCWSTR szApp;
|
||||||
|
|
Loading…
Reference in New Issue