ReactOS  0.4.15-dev-3287-gfec35dc
CPrinterFolder Class Reference

#include <CPrinterFolder.h>

Inheritance diagram for CPrinterFolder:
Collaboration diagram for CPrinterFolder:

Public Member Functions

 CPrinterFolder ()
 
 ~CPrinterFolder ()
 
virtual HRESULT WINAPI ParseDisplayName (HWND hwndOwner, LPBC pbc, LPOLESTR lpszDisplayName, DWORD *pchEaten, PIDLIST_RELATIVE *ppidl, DWORD *pdwAttributes)
 
virtual HRESULT WINAPI EnumObjects (HWND hwndOwner, DWORD dwFlags, LPENUMIDLIST *ppEnumIDList)
 
virtual HRESULT WINAPI BindToObject (PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut)
 
virtual HRESULT WINAPI BindToStorage (PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut)
 
virtual HRESULT WINAPI CompareIDs (LPARAM lParam, PCUIDLIST_RELATIVE pidl1, PCUIDLIST_RELATIVE pidl2)
 
virtual HRESULT WINAPI CreateViewObject (HWND hwndOwner, REFIID riid, LPVOID *ppvOut)
 
virtual HRESULT WINAPI GetAttributesOf (UINT cidl, PCUITEMID_CHILD_ARRAY apidl, DWORD *rgfInOut)
 
virtual HRESULT WINAPI GetUIObjectOf (HWND hwndOwner, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, REFIID riid, UINT *prgfInOut, LPVOID *ppvOut)
 
virtual HRESULT WINAPI GetDisplayNameOf (PCUITEMID_CHILD pidl, DWORD dwFlags, LPSTRRET strRet)
 
virtual HRESULT WINAPI SetNameOf (HWND hwndOwner, PCUITEMID_CHILD pidl, LPCOLESTR lpName, DWORD dwFlags, PITEMID_CHILD *pPidlOut)
 
virtual HRESULT WINAPI GetDefaultSearchGUID (GUID *pguid)
 
virtual HRESULT WINAPI EnumSearches (IEnumExtraSearch **ppenum)
 
virtual HRESULT WINAPI GetDefaultColumn (DWORD dwRes, ULONG *pSort, ULONG *pDisplay)
 
virtual HRESULT WINAPI GetDefaultColumnState (UINT iColumn, DWORD *pcsFlags)
 
virtual HRESULT WINAPI GetDetailsEx (PCUITEMID_CHILD pidl, const SHCOLUMNID *pscid, VARIANT *pv)
 
virtual HRESULT WINAPI GetDetailsOf (PCUITEMID_CHILD pidl, UINT iColumn, SHELLDETAILS *psd)
 
virtual HRESULT WINAPI MapColumnToSCID (UINT column, SHCOLUMNID *pscid)
 
virtual HRESULT WINAPI GetClassID (CLSID *lpClassId)
 
virtual HRESULT WINAPI Initialize (PCIDLIST_ABSOLUTE pidl)
 
virtual HRESULT WINAPI GetCurFolder (PIDLIST_ABSOLUTE *pidl)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
- Public Member Functions inherited from IShellFolder
HRESULT ParseDisplayName ([in] HWND hwndOwner, [in] LPBC pbcReserved, [in, string] LPOLESTR lpszDisplayName, [out] ULONG *pchEaten, [out] PIDLIST_RELATIVE *ppidl, [in, out, unique] ULONG *pdwAttributes)
 
HRESULT EnumObjects ([in] HWND hwndOwner, [in] SHCONTF grfFlags, [out] IEnumIDList **ppenumIDList)
 
HRESULT BindToObject ([in] PCUIDLIST_RELATIVE pidl, [in] LPBC pbcReserved, [in] REFIID riid, [out, iid_is(riid)] void **ppvOut)
 
HRESULT BindToStorage ([in] PCUIDLIST_RELATIVE pidl, [in] LPBC pbcReserved, [in] REFIID riid, [out, iid_is(riid)] void **ppvObj)
 
HRESULT CreateViewObject ([in] HWND hwndOwner, [in] REFIID riid, [out, iid_is(riid)] void **ppvOut)
 
HRESULT GetAttributesOf ([in] UINT cidl, [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl, [in, out] SFGAOF *rgfInOut)
 
HRESULT GetUIObjectOf ([in] HWND hwndOwner, [in] UINT cidl, [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl, [in] REFIID riid, [in, out, unique] UINT *prgfInOut, [out, iid_is(riid)] void **ppvOut)
 
HRESULT GetDisplayNameOf ([in] PCUITEMID_CHILD pidl, [in] SHGDNF uFlags, [out] STRRET *lpName)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Private Attributes

CLSIDpclsid
 
LPITEMIDLIST pidlRoot
 
int dwAttributes
 

Additional Inherited Members

- Public Types inherited from IShellFolder2
typedef struct IShellFolder2::SHCOLUMNIDLPSHCOLUMNID
 
typedef const SHCOLUMNIDLPCSHCOLUMNID
 
- Public Types inherited from IShellFolder
enum  tagSHGDN {
  SHGDN_NORMAL = 0, SHGDN_INFOLDER = 1, SHGDN_FOREDITING = 0x1000, SHGDN_INCLUDE_NONFILESYS = 0x2000,
  SHGDN_FORADDRESSBAR = 0x4000, SHGDN_FORPARSING = 0x8000
}
 
enum  tagSHCONTF {
  SHCONTF_FOLDERS = 32, SHCONTF_NONFOLDERS = 64, SHCONTF_INCLUDEHIDDEN = 128, SHCONTF_INIT_ON_FIRST_NEXT = 256,
  SHCONTF_NETPRINTERSRCH = 512, SHCONTF_SHAREABLE = 1024, SHCONTF_STORAGE = 2048, SHCONTF_NAVIGATION_ENUM = 0x01000,
  SHCONTF_FASTITEMS = 0x02000, SHCONTF_FLATLIST = 0x04000, SHCONTF_ENABLE_ASYNC = 0x08000, SHCONTF_INCLUDESUPERHIDDEN = 0x10000
}
 
typedef IShellFolderLPSHELLFOLDER
 
typedef enum IShellFolder::tagSHGDN SHGNO
 
typedef DWORD SHGDNF
 
typedef DWORD SHCONTF
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Types inherited from IPersistFolder2
typedef IPersistFolder2LPPERSISTFOLDER2
 
- Public Types inherited from IPersistFolder
typedef IPersistFolderLPPERSISTFOLDER
 
- Public Types inherited from IPersist
typedef IPersistLPPERSIST
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 
- Public Attributes inherited from IShellFolder
SFGAO_STORAGEANCESTOR typedef ULONG SFGAOF
 

Detailed Description

Definition at line 27 of file CPrinterFolder.h.

Constructor & Destructor Documentation

◆ CPrinterFolder()

CPrinterFolder::CPrinterFolder ( )

Definition at line 189 of file CPrinterFolder.cpp.

190 {
191  pidlRoot = NULL;
192  dwAttributes = 0;
193  pclsid = NULL;
194 }
LPITEMIDLIST pidlRoot
DWORD dwAttributes
Definition: vdmdbg.h:34
#define NULL
Definition: types.h:112

◆ ~CPrinterFolder()

CPrinterFolder::~CPrinterFolder ( )

Definition at line 196 of file CPrinterFolder.cpp.

197 {
198  TRACE("-- destroying IShellFolder(%p)\n", this);
199  if (pidlRoot)
200  SHFree(pidlRoot);
201 }
LPITEMIDLIST pidlRoot
#define TRACE(s)
Definition: solgame.cpp:4
void WINAPI SHFree(LPVOID pv)
Definition: shellole.c:331

Member Function Documentation

◆ BindToObject()

HRESULT WINAPI CPrinterFolder::BindToObject ( PCUIDLIST_RELATIVE  pidl,
LPBC  pbcReserved,
REFIID  riid,
LPVOID ppvOut 
)
virtual

Definition at line 243 of file CPrinterFolder.cpp.

244 {
245  return E_NOTIMPL;
246 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ BindToStorage()

HRESULT WINAPI CPrinterFolder::BindToStorage ( PCUIDLIST_RELATIVE  pidl,
LPBC  pbcReserved,
REFIID  riid,
LPVOID ppvOut 
)
virtual

Definition at line 251 of file CPrinterFolder.cpp.

252 {
253  FIXME ("(%p)->(pidl=%p,%p,%s,%p) stub\n",
254  this, pidl, pbcReserved, shdebugstr_guid (&riid), ppvOut);
255 
256  *ppvOut = NULL;
257  return E_NOTIMPL;
258 }
REFIID riid
Definition: precomp.h:44
const char * shdebugstr_guid(const struct _GUID *id)
Definition: debughlp.cpp:414
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
#define NULL
Definition: types.h:112

◆ CompareIDs()

HRESULT WINAPI CPrinterFolder::CompareIDs ( LPARAM  lParam,
PCUIDLIST_RELATIVE  pidl1,
PCUIDLIST_RELATIVE  pidl2 
)
virtual

Implements IShellFolder.

Definition at line 263 of file CPrinterFolder.cpp.

264 {
265  return SHELL32_CompareDetails(this, lParam, pidl1, pidl2);
266 }
HRESULT SHELL32_CompareDetails(IShellFolder2 *isf, LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
Definition: shlfolder.cpp:238
LPARAM lParam
Definition: combotst.c:139

◆ CreateViewObject()

HRESULT WINAPI CPrinterFolder::CreateViewObject ( HWND  hwndOwner,
REFIID  riid,
LPVOID ppvOut 
)
virtual

Definition at line 271 of file CPrinterFolder.cpp.

272 {
273  CComPtr<IShellView> pShellView;
275 
276  TRACE("(%p)->(hwnd=%p,%s,%p)\n", this,
277  hwndOwner, shdebugstr_guid (&riid), ppvOut);
278 
279  if (!ppvOut)
280  return hr;
281 
282  *ppvOut = NULL;
283 
284  if (IsEqualIID(riid, IID_IDropTarget))
285  {
286  WARN("IDropTarget not implemented\n");
287  hr = E_NOTIMPL;
288  }
289  else if(IsEqualIID(riid, IID_IContextMenu))
290  {
291  WARN("IContextMenu not implemented\n");
292  hr = E_NOTIMPL;
293  }
294  else if(IsEqualIID(riid, IID_IShellView))
295  {
296  SFV_CREATE sfvparams = {sizeof(SFV_CREATE), this};
297  hr = SHCreateShellFolderView(&sfvparams, (IShellView**)ppvOut);
298  }
299  TRACE ("-- (%p)->(interface=%p)\n", this, ppvOut);
300  return hr;
301 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:112
const char * shdebugstr_guid(const struct _GUID *id)
Definition: debughlp.cpp:414
HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pcsfv, IShellView **ppsv)
Definition: CDefView.cpp:3795
#define E_INVALIDARG
Definition: ddrawi.h:101
struct _SFV_CREATE SFV_CREATE
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
#define E_NOTIMPL
Definition: ddrawi.h:99
#define NULL
Definition: types.h:112
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ EnumObjects()

HRESULT WINAPI CPrinterFolder::EnumObjects ( HWND  hwndOwner,
DWORD  dwFlags,
LPENUMIDLIST *  ppEnumIDList 
)
virtual

Definition at line 235 of file CPrinterFolder.cpp.

236 {
237  return ShellObjectCreatorInit<CPrintersEnum>(hwndOwner, dwFlags, IID_PPV_ARG(IEnumIDList, ppEnumIDList));
238 }
#define IID_PPV_ARG(Itype, ppType)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175

◆ EnumSearches()

HRESULT WINAPI CPrinterFolder::EnumSearches ( IEnumExtraSearch **  ppenum)
virtual

Implements IShellFolder2.

Definition at line 416 of file CPrinterFolder.cpp.

417 {
418  FIXME("(%p)\n", this);
419  return E_NOTIMPL;
420 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetAttributesOf()

HRESULT WINAPI CPrinterFolder::GetAttributesOf ( UINT  cidl,
PCUITEMID_CHILD_ARRAY  apidl,
DWORD rgfInOut 
)
virtual

Definition at line 306 of file CPrinterFolder.cpp.

307 {
308  static const DWORD dwPrintersAttributes =
309  SFGAO_HASPROPSHEET | SFGAO_STORAGEANCESTOR | SFGAO_FILESYSANCESTOR | SFGAO_FOLDER | SFGAO_CANRENAME | SFGAO_CANDELETE;
310  HRESULT hr = S_OK;
311 
312  FIXME ("(%p)->(cidl=%d apidl=%p mask=0x%08lx): stub\n",
313  this, cidl, apidl, *rgfInOut);
314 
315  *rgfInOut &= dwPrintersAttributes;
316 
317  *rgfInOut &= ~SFGAO_VALIDATE;
318 
319  TRACE ("-- result=0x%08x\n", *rgfInOut);
320  return hr;
321 }
HRESULT hr
Definition: shlfolder.c:183
#define FIXME(fmt,...)
Definition: debug.h:111
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
unsigned long DWORD
Definition: ntddk_ex.h:95
#define S_OK
Definition: intsafe.h:52

◆ GetClassID()

HRESULT WINAPI CPrinterFolder::GetClassID ( CLSID lpClassId)
virtual

Implements IPersist.

Definition at line 478 of file CPrinterFolder.cpp.

479 {
480  TRACE ("(%p)\n", this);
481 
482  *lpClassId = CLSID_Printers;
483 
484  return S_OK;
485 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:52

◆ GetCurFolder()

HRESULT WINAPI CPrinterFolder::GetCurFolder ( PIDLIST_ABSOLUTE pidl)
virtual

Implements IPersistFolder2.

Definition at line 502 of file CPrinterFolder.cpp.

503 {
504  TRACE ("(%p)->(%p)\n", this, pidl);
505 
506  *pidl = ILClone (pidlRoot);
507  return S_OK;
508 }
LPITEMIDLIST pidlRoot
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:52
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
Definition: pidl.c:228

◆ GetDefaultColumn()

HRESULT WINAPI CPrinterFolder::GetDefaultColumn ( DWORD  dwRes,
ULONG pSort,
ULONG pDisplay 
)
virtual

Implements IShellFolder2.

Definition at line 422 of file CPrinterFolder.cpp.

423 {
424  if (pSort)
425  *pSort = 0;
426  if (pDisplay)
427  *pDisplay = 0;
428 
429  return S_OK;
430 }
#define S_OK
Definition: intsafe.h:52

◆ GetDefaultColumnState()

HRESULT WINAPI CPrinterFolder::GetDefaultColumnState ( UINT  iColumn,
DWORD pcsFlags 
)
virtual

Implements IShellFolder2.

Definition at line 432 of file CPrinterFolder.cpp.

433 {
434  if (!pcsFlags || iColumn >= PrinterSHELLVIEWCOLUMNS)
435  return E_INVALIDARG;
436  *pcsFlags = PrinterSFHeader[iColumn].pcsFlags;
437  return S_OK;
438 
439 }
#define PrinterSHELLVIEWCOLUMNS
#define E_INVALIDARG
Definition: ddrawi.h:101
static shvheader PrinterSFHeader[]
#define S_OK
Definition: intsafe.h:52

◆ GetDefaultSearchGUID()

HRESULT WINAPI CPrinterFolder::GetDefaultSearchGUID ( GUID pguid)
virtual

Implements IShellFolder2.

Definition at line 410 of file CPrinterFolder.cpp.

411 {
412  FIXME("(%p)\n", this);
413  return E_NOTIMPL;
414 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetDetailsEx()

HRESULT WINAPI CPrinterFolder::GetDetailsEx ( PCUITEMID_CHILD  pidl,
const SHCOLUMNID pscid,
VARIANT pv 
)
virtual

Implements IShellFolder2.

Definition at line 441 of file CPrinterFolder.cpp.

442 {
443  FIXME("(%p): stub\n", this);
444 
445  return E_NOTIMPL;
446 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetDetailsOf()

HRESULT WINAPI CPrinterFolder::GetDetailsOf ( PCUITEMID_CHILD  pidl,
UINT  iColumn,
SHELLDETAILS psd 
)
virtual

Implements IShellFolder2.

Definition at line 448 of file CPrinterFolder.cpp.

449 {
450  TRACE("(%p)->(%p %i %p): stub\n", this, pidl, iColumn, psd);
451 
452  if (iColumn >= PrinterSHELLVIEWCOLUMNS)
453  return E_FAIL;
454 
455  psd->fmt = PrinterSFHeader[iColumn].fmt;
456  psd->cxChar = PrinterSFHeader[iColumn].cxChar;
457  if (pidl == NULL)
458  return SHSetStrRet(&psd->str, PrinterSFHeader[iColumn].colnameid);
459 
460  if (iColumn == COLUMN_NAME)
461  return GetDisplayNameOf(pidl, SHGDN_NORMAL, &psd->str);
462 
463  psd->str.uType = STRRET_CSTR;
464  psd->str.cStr[0] = '\0';
465 
466  return E_NOTIMPL;
467 }
#define COLUMN_NAME
#define PrinterSHELLVIEWCOLUMNS
virtual HRESULT WINAPI GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFlags, LPSTRRET strRet)
#define E_FAIL
Definition: ddrawi.h:102
STRRET str
Definition: shtypes.idl:108
char cStr[MAX_PATH]
Definition: shtypes.idl:98
#define TRACE(s)
Definition: solgame.cpp:4
static shvheader PrinterSFHeader[]
#define E_NOTIMPL
Definition: ddrawi.h:99
#define NULL
Definition: types.h:112
UINT uType
Definition: shtypes.idl:93

◆ GetDisplayNameOf()

HRESULT WINAPI CPrinterFolder::GetDisplayNameOf ( PCUITEMID_CHILD  pidl,
DWORD  dwFlags,
LPSTRRET  strRet 
)
virtual

Definition at line 366 of file CPrinterFolder.cpp.

367 {
368  PIDLPrinterStruct * p;
369 
370  TRACE ("(%p)->(pidl=%p,0x%08lx,%p)\n", this, pidl, dwFlags, strRet);
371  pdump (pidl);
372 
373  if (!strRet)
374  {
375  WARN("no strRet\n");
376  return E_INVALIDARG;
377  }
378 
379  p = _ILGetPrinterStruct(pidl);
380  if (!p)
381  {
382  ERR("no printer struct\n");
383  return E_INVALIDARG;
384  }
385 
386  return SHSetStrRet(strRet, p->szName);
387 }
#define WARN(fmt,...)
Definition: debug.h:112
static PIDLPrinterStruct * _ILGetPrinterStruct(LPCITEMIDLIST pidl)
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
#define ERR(fmt,...)
Definition: debug.h:110
void pdump(LPCITEMIDLIST pidl)
Definition: debughlp.cpp:248
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by GetDetailsOf().

◆ GetUIObjectOf()

HRESULT WINAPI CPrinterFolder::GetUIObjectOf ( HWND  hwndOwner,
UINT  cidl,
PCUITEMID_CHILD_ARRAY  apidl,
REFIID  riid,
UINT prgfInOut,
LPVOID ppvOut 
)
virtual

Definition at line 335 of file CPrinterFolder.cpp.

337 {
338  LPVOID pObj = NULL;
340 
341  TRACE ("(%p)->(%p,%u,apidl=%p,%s,%p,%p)\n",
342  this, hwndOwner, cidl, apidl, shdebugstr_guid (&riid), prgfInOut, ppvOut);
343 
344  if (!ppvOut)
345  return hr;
346 
347  *ppvOut = NULL;
348 
349  if ((IsEqualIID (riid, IID_IExtractIconA) || IsEqualIID(riid, IID_IExtractIconW)) && cidl == 1)
350  hr = CPrintersExtractIconW_CreateInstane(apidl[0], riid, &pObj);
351  else
352  hr = E_NOINTERFACE;
353 
354  if (SUCCEEDED(hr) && !pObj)
355  hr = E_OUTOFMEMORY;
356 
357  *ppvOut = pObj;
358  TRACE ("(%p)->hr=0x%08lx\n", this, hr);
359  return hr;
360 }
#define E_NOINTERFACE
Definition: winerror.h:2364
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
const char * shdebugstr_guid(const struct _GUID *id)
Definition: debughlp.cpp:414
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
if SUCCEEDED(hr)
#define E_INVALIDARG
Definition: ddrawi.h:101
HRESULT WINAPI CPrintersExtractIconW_CreateInstane(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv)
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
#define NULL
Definition: types.h:112
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ Initialize()

HRESULT WINAPI CPrinterFolder::Initialize ( PCIDLIST_ABSOLUTE  pidl)
virtual

Implements IPersistFolder.

Definition at line 490 of file CPrinterFolder.cpp.

491 {
492  if (pidlRoot)
494 
495  pidlRoot = ILClone(pidl);
496  return S_OK;
497 }
LPITEMIDLIST pidlRoot
#define S_OK
Definition: intsafe.h:52
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
Definition: pidl.c:228
void WINAPI SHFree(LPVOID pv)
Definition: shellole.c:331

◆ MapColumnToSCID()

HRESULT WINAPI CPrinterFolder::MapColumnToSCID ( UINT  column,
SHCOLUMNID pscid 
)
virtual

Implements IShellFolder2.

Definition at line 469 of file CPrinterFolder.cpp.

470 {
471  FIXME ("(%p): stub\n", this);
472  return E_NOTIMPL;
473 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ParseDisplayName()

HRESULT WINAPI CPrinterFolder::ParseDisplayName ( HWND  hwndOwner,
LPBC  pbc,
LPOLESTR  lpszDisplayName,
DWORD pchEaten,
PIDLIST_RELATIVE ppidl,
DWORD pdwAttributes 
)
virtual

Definition at line 208 of file CPrinterFolder.cpp.

210 {
211  TRACE("(%p)->(HWND=%p,%p,%p=%s,%p,pidl=%p,%p)\n",
212  this, hwndOwner, pbc, lpszDisplayName, debugstr_w(lpszDisplayName),
213  pchEaten, ppidl, pdwAttributes);
214 
215  *ppidl = 0;
216  if (pchEaten)
217  *pchEaten = 0;
218 
219  return E_NOTIMPL;
220 }
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ SetNameOf()

HRESULT WINAPI CPrinterFolder::SetNameOf ( HWND  hwndOwner,
PCUITEMID_CHILD  pidl,
LPCOLESTR  lpName,
DWORD  dwFlags,
PITEMID_CHILD pPidlOut 
)
virtual

Implements IShellFolder.

Definition at line 401 of file CPrinterFolder.cpp.

403 {
404  FIXME("(%p)->(%p,pidl=%p,%s,%lu,%p)\n", this, hwndOwner, pidl,
405  debugstr_w (lpName), dwFlags, pPidlOut);
406 
407  return E_FAIL;
408 }
_In_ LPCSTR lpName
Definition: winbase.h:2768
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175

Member Data Documentation

◆ dwAttributes

int CPrinterFolder::dwAttributes
private

Definition at line 38 of file CPrinterFolder.h.

◆ pclsid

CLSID* CPrinterFolder::pclsid
private

Definition at line 34 of file CPrinterFolder.h.

Referenced by CPrinterFolder().

◆ pidlRoot

LPITEMIDLIST CPrinterFolder::pidlRoot
private

Definition at line 36 of file CPrinterFolder.h.

Referenced by CPrinterFolder(), GetCurFolder(), Initialize(), and ~CPrinterFolder().


The documentation for this class was generated from the following files: