ReactOS  0.4.15-dev-2153-g62b4c61
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 181 of file CPrinterFolder.cpp.

182 {
183  pidlRoot = NULL;
184  dwAttributes = 0;
185  pclsid = NULL;
186 }
LPITEMIDLIST pidlRoot
DWORD dwAttributes
Definition: vdmdbg.h:34
#define NULL
Definition: types.h:112

◆ ~CPrinterFolder()

CPrinterFolder::~CPrinterFolder ( )

Definition at line 188 of file CPrinterFolder.cpp.

189 {
190  TRACE("-- destroying IShellFolder(%p)\n", this);
191  if (pidlRoot)
192  SHFree(pidlRoot);
193 }
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 235 of file CPrinterFolder.cpp.

236 {
237  return E_NOTIMPL;
238 }
#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 243 of file CPrinterFolder.cpp.

244 {
245  FIXME ("(%p)->(pidl=%p,%p,%s,%p) stub\n",
246  this, pidl, pbcReserved, shdebugstr_guid (&riid), ppvOut);
247 
248  *ppvOut = NULL;
249  return E_NOTIMPL;
250 }
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 255 of file CPrinterFolder.cpp.

256 {
257  return SHELL32_CompareDetails(this, lParam, pidl1, pidl2);
258 }
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 263 of file CPrinterFolder.cpp.

264 {
265  CComPtr<IShellView> pShellView;
267 
268  TRACE("(%p)->(hwnd=%p,%s,%p)\n", this,
269  hwndOwner, shdebugstr_guid (&riid), ppvOut);
270 
271  if (!ppvOut)
272  return hr;
273 
274  *ppvOut = NULL;
275 
276  if (IsEqualIID(riid, IID_IDropTarget))
277  {
278  WARN("IDropTarget not implemented\n");
279  hr = E_NOTIMPL;
280  }
281  else if(IsEqualIID(riid, IID_IContextMenu))
282  {
283  WARN("IContextMenu not implemented\n");
284  hr = E_NOTIMPL;
285  }
286  else if(IsEqualIID(riid, IID_IShellView))
287  {
288  SFV_CREATE sfvparams = {sizeof(SFV_CREATE), this};
289  hr = SHCreateShellFolderView(&sfvparams, (IShellView**)ppvOut);
290  }
291  TRACE ("-- (%p)->(interface=%p)\n", this, ppvOut);
292  return hr;
293 }
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:3755
#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 227 of file CPrinterFolder.cpp.

228 {
229  return ShellObjectCreatorInit<CPrintersEnum>(hwndOwner, dwFlags, IID_PPV_ARG(IEnumIDList, ppEnumIDList));
230 }
#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 408 of file CPrinterFolder.cpp.

409 {
410  FIXME("(%p)\n", this);
411  return E_NOTIMPL;
412 }
#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 298 of file CPrinterFolder.cpp.

299 {
300  static const DWORD dwPrintersAttributes =
301  SFGAO_HASPROPSHEET | SFGAO_STORAGEANCESTOR | SFGAO_FILESYSANCESTOR | SFGAO_FOLDER | SFGAO_CANRENAME | SFGAO_CANDELETE;
302  HRESULT hr = S_OK;
303 
304  FIXME ("(%p)->(cidl=%d apidl=%p mask=0x%08lx): stub\n",
305  this, cidl, apidl, *rgfInOut);
306 
307  *rgfInOut &= dwPrintersAttributes;
308 
309  *rgfInOut &= ~SFGAO_VALIDATE;
310 
311  TRACE ("-- result=0x%08x\n", *rgfInOut);
312  return hr;
313 }
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:51

◆ GetClassID()

HRESULT WINAPI CPrinterFolder::GetClassID ( CLSID lpClassId)
virtual

Implements IPersist.

Definition at line 470 of file CPrinterFolder.cpp.

471 {
472  TRACE ("(%p)\n", this);
473 
474  *lpClassId = CLSID_Printers;
475 
476  return S_OK;
477 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ GetCurFolder()

HRESULT WINAPI CPrinterFolder::GetCurFolder ( PIDLIST_ABSOLUTE pidl)
virtual

Implements IPersistFolder2.

Definition at line 494 of file CPrinterFolder.cpp.

495 {
496  TRACE ("(%p)->(%p)\n", this, pidl);
497 
498  *pidl = ILClone (pidlRoot);
499  return S_OK;
500 }
LPITEMIDLIST pidlRoot
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51
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 414 of file CPrinterFolder.cpp.

415 {
416  if (pSort)
417  *pSort = 0;
418  if (pDisplay)
419  *pDisplay = 0;
420 
421  return S_OK;
422 }
#define S_OK
Definition: intsafe.h:51

◆ GetDefaultColumnState()

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

Implements IShellFolder2.

Definition at line 424 of file CPrinterFolder.cpp.

425 {
426  if (!pcsFlags || iColumn >= PrinterSHELLVIEWCOLUMNS)
427  return E_INVALIDARG;
428  *pcsFlags = PrinterSFHeader[iColumn].pcsFlags;
429  return S_OK;
430 
431 }
#define PrinterSHELLVIEWCOLUMNS
#define E_INVALIDARG
Definition: ddrawi.h:101
static shvheader PrinterSFHeader[]
#define S_OK
Definition: intsafe.h:51

◆ GetDefaultSearchGUID()

HRESULT WINAPI CPrinterFolder::GetDefaultSearchGUID ( GUID pguid)
virtual

Implements IShellFolder2.

Definition at line 402 of file CPrinterFolder.cpp.

403 {
404  FIXME("(%p)\n", this);
405  return E_NOTIMPL;
406 }
#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 433 of file CPrinterFolder.cpp.

434 {
435  FIXME("(%p): stub\n", this);
436 
437  return E_NOTIMPL;
438 }
#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 440 of file CPrinterFolder.cpp.

441 {
442  TRACE("(%p)->(%p %i %p): stub\n", this, pidl, iColumn, psd);
443 
444  if (iColumn >= PrinterSHELLVIEWCOLUMNS)
445  return E_FAIL;
446 
447  psd->fmt = PrinterSFHeader[iColumn].fmt;
448  psd->cxChar = PrinterSFHeader[iColumn].cxChar;
449  if (pidl == NULL)
450  return SHSetStrRet(&psd->str, PrinterSFHeader[iColumn].colnameid);
451 
452  if (iColumn == COLUMN_NAME)
453  return GetDisplayNameOf(pidl, SHGDN_NORMAL, &psd->str);
454 
455  psd->str.uType = STRRET_CSTR;
456  psd->str.cStr[0] = '\0';
457 
458  return E_NOTIMPL;
459 }
#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 358 of file CPrinterFolder.cpp.

359 {
360  PIDLPrinterStruct * p;
361 
362  TRACE ("(%p)->(pidl=%p,0x%08lx,%p)\n", this, pidl, dwFlags, strRet);
363  pdump (pidl);
364 
365  if (!strRet)
366  {
367  WARN("no strRet\n");
368  return E_INVALIDARG;
369  }
370 
371  p = _ILGetPrinterStruct(pidl);
372  if (!p)
373  {
374  ERR("no printer struct\n");
375  return E_INVALIDARG;
376  }
377 
378  return SHSetStrRet(strRet, p->szName);
379 }
#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 327 of file CPrinterFolder.cpp.

329 {
330  LPVOID pObj = NULL;
332 
333  TRACE ("(%p)->(%p,%u,apidl=%p,%s,%p,%p)\n",
334  this, hwndOwner, cidl, apidl, shdebugstr_guid (&riid), prgfInOut, ppvOut);
335 
336  if (!ppvOut)
337  return hr;
338 
339  *ppvOut = NULL;
340 
341  if ((IsEqualIID (riid, IID_IExtractIconA) || IsEqualIID(riid, IID_IExtractIconW)) && cidl == 1)
342  hr = CPrintersExtractIconW_CreateInstane(apidl[0], riid, &pObj);
343  else
344  hr = E_NOINTERFACE;
345 
346  if (SUCCEEDED(hr) && !pObj)
347  hr = E_OUTOFMEMORY;
348 
349  *ppvOut = pObj;
350  TRACE ("(%p)->hr=0x%08lx\n", this, hr);
351  return hr;
352 }
#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 482 of file CPrinterFolder.cpp.

483 {
484  if (pidlRoot)
486 
487  pidlRoot = ILClone(pidl);
488  return S_OK;
489 }
LPITEMIDLIST pidlRoot
#define S_OK
Definition: intsafe.h:51
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 461 of file CPrinterFolder.cpp.

462 {
463  FIXME ("(%p): stub\n", this);
464  return E_NOTIMPL;
465 }
#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 200 of file CPrinterFolder.cpp.

202 {
203  TRACE("(%p)->(HWND=%p,%p,%p=%s,%p,pidl=%p,%p)\n",
204  this, hwndOwner, pbc, lpszDisplayName, debugstr_w(lpszDisplayName),
205  pchEaten, ppidl, pdwAttributes);
206 
207  *ppidl = 0;
208  if (pchEaten)
209  *pchEaten = 0;
210 
211  return E_NOTIMPL;
212 }
#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 393 of file CPrinterFolder.cpp.

395 {
396  FIXME("(%p)->(%p,pidl=%p,%s,%lu,%p)\n", this, hwndOwner, pidl,
397  debugstr_w (lpName), dwFlags, pPidlOut);
398 
399  return E_FAIL;
400 }
_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: