#include <precomp.h>
#include <winspool.h>
Go to the source code of this file.
◆ COLUMN_COMMENTS
◆ COLUMN_DOCUMENTS
◆ COLUMN_LOCATION
◆ COLUMN_MODEL
◆ COLUMN_NAME
◆ COLUMN_STATUS
◆ PrinterSHELLVIEWCOLUMNS
#define PrinterSHELLVIEWCOLUMNS (6) |
◆ _ILCreatePrinterItem()
Definition at line 98 of file CPrinterFolder.cpp.
102 PIDLPrinterStruct *
p;
103 int size0 = (
char*)&tmp.u.cprinter.szName - (
char*)&tmp.u.cprinter;
105 SIZE_T cchPrinterName = 0;
108 if (
pi->pPrinterName)
109 cchPrinterName =
wcslen(
pi->pPrinterName);
111 cchServerName =
wcslen(
pi->pServerName);
112 if ((cchPrinterName + cchServerName) > (
MAXUSHORT - 2))
118 tmp.u.cprinter.dummy = 0xFF;
119 if (
pi->pPrinterName)
120 tmp.u.cprinter.offsServer = cchPrinterName + 1;
122 tmp.u.cprinter.offsServer = 1;
124 size += tmp.u.cprinter.offsServer *
sizeof(
WCHAR);
126 size += (cchServerName + 1) *
sizeof(
WCHAR);
134 pidl->mkid.cb =
size + 2;
135 memcpy(pidl->mkid.abID, &tmp, 2 + size0);
137 p = &((
PIDLDATA*)pidl->mkid.abID)->u.cprinter;
139 p->Attributes =
pi->Attributes;
140 if (
pi->pPrinterName)
143 p->szName[0] =
L'\0';
146 wcscpy(
p->szName +
p->offsServer,
pi->pServerName);
148 p->szName[
p->offsServer] =
L'\0';
150 *(
WORD*)((
char*)pidl + (
size + 2)) = 0;
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define memcpy(s1, s2, n)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
LPVOID WINAPI SHAlloc(SIZE_T len)
Referenced by CPrintersEnum::CreatePrintersEnumList().
◆ _ILGetPrinterStruct()
static PIDLPrinterStruct* _ILGetPrinterStruct |
( |
LPCITEMIDLIST |
pidl | ) |
|
|
static |
◆ CPrintersExtractIconW_CreateInstane()
Definition at line 53 of file CPrinterFolder.cpp.
55 CComPtr<IDefaultExtractIconInit> initIcon;
63 return initIcon->QueryInterface(
riid,
ppv);
WCHAR swShell32Name[MAX_PATH]
#define IID_PPV_ARG(Itype, ppType)
#define FAILED_UNEXPECTEDLY(hr)
#define IDI_SHELL_PRINTER
Referenced by CPrinterFolder::GetUIObjectOf().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
shell |
| ) |
|
◆ PrinterSFHeader