Printer_LoadIconsW

Go to Home Page

Loads large and small icons representing a specified printer

Syntax

void WINAPI Printer_LoadIconsW (
    LPCWSTR printerName,
    HICON* phLargeIcon,
    HICON* phSmallIcon
)

Parameters

printerName
The name of a printer to load icons for
phLargeIcon
A pointer to the printers' large icon
phSmallIcon
A pointer to the printers' small icon

Return Value

None

Remarks

Translates printerName to a pidl via IShellFolder->ParseDisplayName and uses SHGetFileInfo(pidl, SHGFI_ICON | SHGFI_PIDL) to get the large icon and SHGetFileInfo(SHGFI_ICON | SHGFI_SMALLICON | SHGFI_PIDL) to get the small icon.

This function is also known as _Printer_LoadIconsW@12.