3 * Virtual Desktop Folder
5 * Copyright 1997 Marcus Meissner
6 * Copyright 1998, 1999, 2002 Juergen Schmied
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include "wine/port.h"
32 #define NONAMELESSUNION
33 #define NONAMELESSSTRUCT
45 #include "enumidlist.h"
47 #include "undocshell.h"
48 #include "shell32_main.h"
51 #include "shellfolder.h"
52 #include "wine/debug.h"
56 WINE_DEFAULT_DEBUG_CHANNEL (shell);
58 /***********************************************************************
59 * Desktopfolder implementation
63 IShellFolder2Vtbl *lpVtbl;
68 /* both paths are parsible from the desktop */
69 LPSTR sPathTarget; /* complete path to target used for enumeration and ChangeNotify */
70 LPITEMIDLIST pidlRoot; /* absolute pidl */
72 int dwAttributes; /* attributes returned by GetAttributesOf FIXME: use it */
74 UINT cfShellIDList; /* clipboardformat for IDropTarget */
75 BOOL fAcceptFmt; /* flag for pending Drop */
78 #define _IUnknown_(This) (IShellFolder*)&(This->lpVtbl)
79 #define _IShellFolder_(This) (IShellFolder*)&(This->lpVtbl)
81 static struct IShellFolder2Vtbl vt_MCFldr_ShellFolder2;
83 static shvheader DesktopSFHeader[] = {
84 {IDS_SHV_COLUMN1, SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_RIGHT, 15},
85 {IDS_SHV_COLUMN2, SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_RIGHT, 10},
86 {IDS_SHV_COLUMN3, SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_RIGHT, 10},
87 {IDS_SHV_COLUMN4, SHCOLSTATE_TYPE_DATE | SHCOLSTATE_ONBYDEFAULT, LVCFMT_RIGHT, 12},
88 {IDS_SHV_COLUMN5, SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_RIGHT, 5}
91 #define DESKTOPSHELLVIEWCOLUMNS 5
93 /**************************************************************************
94 * ISF_Desktop_Constructor
96 HRESULT WINAPI ISF_Desktop_Constructor (
97 IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv)
100 char szMyPath[MAX_PATH];
102 TRACE ("unkOut=%p %s\n", pUnkOuter, shdebugstr_guid (riid));
107 return CLASS_E_NOAGGREGATION;
109 if (!SHGetSpecialFolderPathA (0, szMyPath, CSIDL_DESKTOPDIRECTORY, TRUE))
112 sf = (IGenericSFImpl *) LocalAlloc (GMEM_ZEROINIT, sizeof (IGenericSFImpl));
114 return E_OUTOFMEMORY;
117 sf->lpVtbl = &vt_MCFldr_ShellFolder2;
118 sf->pidlRoot = _ILCreateDesktop (); /* my qualified pidl */
119 sf->sPathTarget = SHAlloc (strlen (szMyPath) + 1);
120 lstrcpyA (sf->sPathTarget, szMyPath);
122 if (!SUCCEEDED (IUnknown_QueryInterface (_IUnknown_ (sf), riid, ppv)))
124 IUnknown_Release (_IUnknown_ (sf));
125 return E_NOINTERFACE;
128 TRACE ("--(%p)\n", sf);
132 /**************************************************************************
133 * ISF_Desktop_fnQueryInterface
135 * NOTES supports not IPersist/IPersistFolder
137 static HRESULT WINAPI ISF_Desktop_fnQueryInterface(
138 IShellFolder2 * iface, REFIID riid, LPVOID * ppvObj)
140 IGenericSFImpl *This = (IGenericSFImpl *)iface;
142 TRACE ("(%p)->(%s,%p)\n", This, shdebugstr_guid (riid), ppvObj);
146 if (IsEqualIID (riid, &IID_IUnknown) ||
147 IsEqualIID (riid, &IID_IShellFolder) ||
148 IsEqualIID (riid, &IID_IShellFolder2))
155 IUnknown_AddRef ((IUnknown *) (*ppvObj));
156 TRACE ("-- Interface: (%p)->(%p)\n", ppvObj, *ppvObj);
159 TRACE ("-- Interface: E_NOINTERFACE\n");
160 return E_NOINTERFACE;
163 static ULONG WINAPI ISF_Desktop_fnAddRef (IShellFolder2 * iface)
165 IGenericSFImpl *This = (IGenericSFImpl *)iface;
166 ULONG refCount = InterlockedIncrement(&This->ref);
168 TRACE ("(%p)->(count=%lu)\n", This, refCount - 1);
173 static ULONG WINAPI ISF_Desktop_fnRelease (IShellFolder2 * iface)
175 IGenericSFImpl *This = (IGenericSFImpl *)iface;
176 ULONG refCount = InterlockedDecrement(&This->ref);
178 TRACE ("(%p)->(count=%lu)\n", This, refCount + 1);
182 TRACE ("-- destroying IShellFolder(%p)\n", This);
184 SHFree (This->pidlRoot);
185 if (This->sPathTarget)
186 SHFree (This->sPathTarget);
187 LocalFree ((HLOCAL) This);
193 /**************************************************************************
194 * ISF_Desktop_fnParseDisplayName
197 * "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" and "" binds
200 static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
201 HWND hwndOwner, LPBC pbc, LPOLESTR lpszDisplayName,
202 DWORD * pchEaten, LPITEMIDLIST * ppidl, DWORD * pdwAttributes)
204 IGenericSFImpl *This = (IGenericSFImpl *)iface;
205 WCHAR szElement[MAX_PATH];
206 LPCWSTR szNext = NULL;
207 LPITEMIDLIST pidlTemp = NULL;
209 char szPath[MAX_PATH];
213 TRACE ("(%p)->(HWND=%p,%p,%p=%s,%p,pidl=%p,%p)\n",
214 This, hwndOwner, pbc, lpszDisplayName, debugstr_w(lpszDisplayName),
215 pchEaten, ppidl, pdwAttributes);
217 if (!lpszDisplayName || !ppidl)
223 *pchEaten = 0; /* strange but like the original */
225 if (lpszDisplayName[0] == ':' && lpszDisplayName[1] == ':')
227 szNext = GetNextElementW (lpszDisplayName, szElement, MAX_PATH);
228 TRACE ("-- element: %s\n", debugstr_w (szElement));
229 SHCLSIDFromStringW (szElement + 2, &clsid);
230 pidlTemp = _ILCreateGuid (PT_GUID, &clsid);
232 else if (PathGetDriveNumberW (lpszDisplayName) >= 0)
234 /* it's a filesystem path with a drive. Let MyComputer parse it */
235 pidlTemp = _ILCreateMyComputer ();
236 szNext = lpszDisplayName;
238 else if (PathIsUNCW(lpszDisplayName))
240 pidlTemp = _ILCreateNetwork();
241 szNext = lpszDisplayName;
245 /* it's a filesystem path on the desktop. Let a FSFolder parse it */
247 if (*lpszDisplayName)
249 /* build a complete path to create a simple pidl */
250 lstrcpyA(szPath, This->sPathTarget);
251 PathAddBackslashA(szPath);
252 len = lstrlenA(szPath);
253 WideCharToMultiByte(CP_ACP, 0, lpszDisplayName, -1,
254 szPath + len, MAX_PATH - len, NULL, NULL);
255 hr = _ILCreateFromPathA(szPath, &pidlTemp);
258 pidlTemp = _ILCreateMyComputer();
263 if (SUCCEEDED(hr) && pidlTemp)
265 if (szNext && *szNext)
267 hr = SHELL32_ParseNextElement(iface, hwndOwner, pbc,
268 &pidlTemp, (LPOLESTR) szNext, pchEaten, pdwAttributes);
272 if (pdwAttributes && *pdwAttributes)
273 hr = SHELL32_GetItemAttributes(_IShellFolder_ (This),
274 pidlTemp, pdwAttributes);
280 TRACE ("(%p)->(-- ret=0x%08lx)\n", This, hr);
285 /**************************************************************************
286 * CreateDesktopEnumList()
288 static BOOL CreateDesktopEnumList(IEnumIDList *list, DWORD dwFlags)
291 char szPath[MAX_PATH];
293 TRACE("(%p)->(flags=0x%08lx) \n",list,dwFlags);
295 /* enumerate the root folders */
296 if (dwFlags & SHCONTF_FOLDERS)
301 /* create the pidl for This item */
302 ret = AddToEnumList(list, _ILCreateMyComputer());
304 r = RegOpenKeyExA(HKEY_LOCAL_MACHINE,
305 "SOFTWARE\\Microsoft\\Windows\\"
306 "CurrentVersion\\explorer\\desktop\\NameSpace",
308 if (ret && ERROR_SUCCESS == r)
312 BOOL moreKeys = TRUE;
314 while (ret && moreKeys)
319 r = RegEnumKeyExA(hkey, i, iid, &size, 0, NULL, NULL, NULL);
320 if (ERROR_SUCCESS == r)
322 ret = AddToEnumList(list, _ILCreateGuidFromStrA(iid));
325 else if (ERROR_NO_MORE_ITEMS == r)
334 /* enumerate the elements in %windir%\desktop */
335 SHGetSpecialFolderPathA(0, szPath, CSIDL_DESKTOPDIRECTORY, FALSE);
336 ret = ret && CreateFolderEnumList(list, szPath, dwFlags);
341 /**************************************************************************
342 * ISF_Desktop_fnEnumObjects
344 static HRESULT WINAPI ISF_Desktop_fnEnumObjects (IShellFolder2 * iface,
345 HWND hwndOwner, DWORD dwFlags, LPENUMIDLIST * ppEnumIDList)
347 IGenericSFImpl *This = (IGenericSFImpl *)iface;
349 TRACE ("(%p)->(HWND=%p flags=0x%08lx pplist=%p)\n",
350 This, hwndOwner, dwFlags, ppEnumIDList);
352 *ppEnumIDList = IEnumIDList_Constructor();
354 CreateDesktopEnumList(*ppEnumIDList, dwFlags);
356 TRACE ("-- (%p)->(new ID List: %p)\n", This, *ppEnumIDList);
358 return *ppEnumIDList ? S_OK : E_OUTOFMEMORY;
361 /**************************************************************************
362 * ISF_Desktop_fnBindToObject
364 static HRESULT WINAPI ISF_Desktop_fnBindToObject (IShellFolder2 * iface,
365 LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, LPVOID * ppvOut)
367 IGenericSFImpl *This = (IGenericSFImpl *)iface;
369 TRACE ("(%p)->(pidl=%p,%p,%s,%p)\n",
370 This, pidl, pbcReserved, shdebugstr_guid (riid), ppvOut);
372 return SHELL32_BindToChild (This->pidlRoot, This->sPathTarget, pidl, riid, ppvOut);
375 /**************************************************************************
376 * ISF_Desktop_fnBindToStorage
378 static HRESULT WINAPI ISF_Desktop_fnBindToStorage (IShellFolder2 * iface,
379 LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, LPVOID * ppvOut)
381 IGenericSFImpl *This = (IGenericSFImpl *)iface;
383 FIXME ("(%p)->(pidl=%p,%p,%s,%p) stub\n",
384 This, pidl, pbcReserved, shdebugstr_guid (riid), ppvOut);
390 /**************************************************************************
391 * ISF_Desktop_fnCompareIDs
393 static HRESULT WINAPI ISF_Desktop_fnCompareIDs (IShellFolder2 * iface,
394 LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
396 IGenericSFImpl *This = (IGenericSFImpl *)iface;
399 TRACE ("(%p)->(0x%08lx,pidl1=%p,pidl2=%p)\n", This, lParam, pidl1, pidl2);
400 nReturn = SHELL32_CompareIDs (_IShellFolder_ (This), lParam, pidl1, pidl2);
401 TRACE ("-- %i\n", nReturn);
405 /**************************************************************************
406 * ISF_Desktop_fnCreateViewObject
408 static HRESULT WINAPI ISF_Desktop_fnCreateViewObject (IShellFolder2 * iface,
409 HWND hwndOwner, REFIID riid, LPVOID * ppvOut)
411 IGenericSFImpl *This = (IGenericSFImpl *)iface;
412 LPSHELLVIEW pShellView;
413 HRESULT hr = E_INVALIDARG;
415 TRACE ("(%p)->(hwnd=%p,%s,%p)\n",
416 This, hwndOwner, shdebugstr_guid (riid), ppvOut);
423 if (IsEqualIID (riid, &IID_IDropTarget))
425 WARN ("IDropTarget not implemented\n");
428 else if (IsEqualIID (riid, &IID_IContextMenu))
430 WARN ("IContextMenu not implemented\n");
433 else if (IsEqualIID (riid, &IID_IShellView))
435 pShellView = IShellView_Constructor ((IShellFolder *) iface);
438 hr = IShellView_QueryInterface (pShellView, riid, ppvOut);
439 IShellView_Release (pShellView);
442 TRACE ("-- (%p)->(interface=%p)\n", This, ppvOut);
446 /**************************************************************************
447 * ISF_Desktop_fnGetAttributesOf
449 static HRESULT WINAPI ISF_Desktop_fnGetAttributesOf (IShellFolder2 * iface,
450 UINT cidl, LPCITEMIDLIST * apidl, DWORD * rgfInOut)
452 IGenericSFImpl *This = (IGenericSFImpl *)iface;
455 TRACE ("(%p)->(cidl=%d apidl=%p mask=0x%08lx)\n",
456 This, cidl, apidl, *rgfInOut);
458 if (!cidl || !apidl || !rgfInOut)
464 while (cidl > 0 && *apidl)
467 SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
472 TRACE ("-- result=0x%08lx\n", *rgfInOut);
477 /**************************************************************************
478 * ISF_Desktop_fnGetUIObjectOf
481 * HWND hwndOwner, //[in ] Parent window for any output
482 * UINT cidl, //[in ] array size
483 * LPCITEMIDLIST* apidl, //[in ] simple pidl array
484 * REFIID riid, //[in ] Requested Interface
485 * UINT* prgfInOut, //[ ] reserved
486 * LPVOID* ppvObject) //[out] Resulting Interface
489 static HRESULT WINAPI ISF_Desktop_fnGetUIObjectOf (IShellFolder2 * iface,
490 HWND hwndOwner, UINT cidl, LPCITEMIDLIST * apidl,
491 REFIID riid, UINT * prgfInOut, LPVOID * ppvOut)
493 IGenericSFImpl *This = (IGenericSFImpl *)iface;
496 IUnknown *pObj = NULL;
497 HRESULT hr = E_INVALIDARG;
499 TRACE ("(%p)->(%p,%u,apidl=%p,%s,%p,%p)\n",
500 This, hwndOwner, cidl, apidl, shdebugstr_guid (riid), prgfInOut, ppvOut);
507 if (IsEqualIID (riid, &IID_IContextMenu))
509 pObj = (LPUNKNOWN) ISvItemCm_Constructor( (IShellFolder *) iface,
510 This->pidlRoot, apidl, cidl);
513 else if (IsEqualIID (riid, &IID_IDataObject) && (cidl >= 1))
515 pObj = (LPUNKNOWN) IDataObject_Constructor( hwndOwner,
516 This->pidlRoot, apidl, cidl);
519 else if (IsEqualIID (riid, &IID_IExtractIconA) && (cidl == 1))
521 pidl = ILCombine (This->pidlRoot, apidl[0]);
522 pObj = (LPUNKNOWN) IExtractIconA_Constructor (pidl);
526 else if (IsEqualIID (riid, &IID_IExtractIconW) && (cidl == 1))
528 pidl = ILCombine (This->pidlRoot, apidl[0]);
529 pObj = (LPUNKNOWN) IExtractIconW_Constructor (pidl);
533 else if (IsEqualIID (riid, &IID_IDropTarget) && (cidl >= 1))
535 hr = IShellFolder_QueryInterface (iface,
536 &IID_IDropTarget, (LPVOID *) & pObj);
538 else if ((IsEqualIID(riid,&IID_IShellLinkW) ||
539 IsEqualIID(riid,&IID_IShellLinkA)) && (cidl == 1))
541 pidl = ILCombine (This->pidlRoot, apidl[0]);
542 hr = IShellLink_ConstructFromFile(NULL, riid, pidl, (LPVOID*)&pObj);
548 if (SUCCEEDED(hr) && !pObj)
552 TRACE ("(%p)->hr=0x%08lx\n", This, hr);
556 /**************************************************************************
557 * ISF_Desktop_fnGetDisplayNameOf
560 * special case: pidl = null gives desktop-name back
562 static HRESULT WINAPI ISF_Desktop_fnGetDisplayNameOf (IShellFolder2 * iface,
563 LPCITEMIDLIST pidl, DWORD dwFlags, LPSTRRET strRet)
565 IGenericSFImpl *This = (IGenericSFImpl *)iface;
566 CHAR szPath[MAX_PATH];
572 TRACE ("(%p)->(pidl=%p,0x%08lx,%p)\n", This, pidl, dwFlags, strRet);
578 if (_ILIsDesktop (pidl))
580 if ((GET_SHGDN_RELATION (dwFlags) == SHGDN_NORMAL) &&
581 (GET_SHGDN_FOR (dwFlags) == SHGDN_FORPARSING))
583 lstrcpyA (szPath, This->sPathTarget);
586 HCR_GetClassNameA(&CLSID_ShellDesktop, szPath, MAX_PATH);
588 else if (_ILIsPidlSimple (pidl))
590 if ((clsid = _ILGetGUIDPointer (pidl)))
592 if (GET_SHGDN_FOR (dwFlags) == SHGDN_FORPARSING)
594 int bWantsForParsing;
597 * We can only get a filesystem path from a shellfolder if the
598 * value WantsFORPARSING in CLSID\\{...}\\shellfolder exists.
600 * Exception: The MyComputer folder doesn't have this key,
601 * but any other filesystem backed folder it needs it.
603 if (IsEqualIID (clsid, &CLSID_MyComputer))
605 bWantsForParsing = 1;
609 /* get the "WantsFORPARSING" flag from the registry */
613 lstrcpyA (szRegPath, "CLSID\\");
614 SHELL32_GUIDToStringA (clsid, &szRegPath[6]);
615 lstrcatA (szRegPath, "\\shellfolder");
616 r = SHGetValueA(HKEY_CLASSES_ROOT, szRegPath,
617 "WantsFORPARSING", NULL, NULL, NULL);
618 if (r == ERROR_SUCCESS)
619 bWantsForParsing = TRUE;
621 bWantsForParsing = FALSE;
624 if ((GET_SHGDN_RELATION (dwFlags) == SHGDN_NORMAL) &&
628 * we need the filesystem path to the destination folder.
629 * Only the folder itself can know it
631 hr = SHELL32_GetDisplayNameOfChild (iface, pidl, dwFlags,
636 /* parsing name like ::{...} */
637 lstrcpyA (szPath, "::");
638 SHELL32_GUIDToStringA (clsid, &szPath[2]);
643 /* user friendly name */
644 HCR_GetClassNameA (clsid, szPath, MAX_PATH);
649 /* file system folder */
650 _ILSimpleGetText (pidl, szPath, MAX_PATH);
652 if (!_ILIsFolder(pidl))
653 SHELL_FS_ProcessDisplayFilename(szPath, dwFlags);
658 /* a complex pidl, let the subfolder do the work */
659 hr = SHELL32_GetDisplayNameOfChild (iface, pidl, dwFlags, szPath, MAX_PATH);
664 strRet->uType = STRRET_CSTR;
665 lstrcpynA (strRet->u.cStr, szPath, MAX_PATH);
668 TRACE ("-- (%p)->(%s,0x%08lx)\n", This, szPath, hr);
672 /**************************************************************************
673 * ISF_Desktop_fnSetNameOf
674 * Changes the name of a file object or subfolder, possibly changing its item
675 * identifier in the process.
678 * HWND hwndOwner, //[in ] Owner window for output
679 * LPCITEMIDLIST pidl, //[in ] simple pidl of item to change
680 * LPCOLESTR lpszName, //[in ] the items new display name
681 * DWORD dwFlags, //[in ] SHGNO formatting flags
682 * LPITEMIDLIST* ppidlOut) //[out] simple pidl returned
684 static HRESULT WINAPI ISF_Desktop_fnSetNameOf (IShellFolder2 * iface,
685 HWND hwndOwner, LPCITEMIDLIST pidl, /* simple pidl */
686 LPCOLESTR lpName, DWORD dwFlags, LPITEMIDLIST * pPidlOut)
688 IGenericSFImpl *This = (IGenericSFImpl *)iface;
690 FIXME ("(%p)->(%p,pidl=%p,%s,%lu,%p)\n", This, hwndOwner, pidl,
691 debugstr_w (lpName), dwFlags, pPidlOut);
696 static HRESULT WINAPI ISF_Desktop_fnGetDefaultSearchGUID(IShellFolder2 *iface,
699 IGenericSFImpl *This = (IGenericSFImpl *)iface;
701 FIXME ("(%p)\n", This);
705 static HRESULT WINAPI ISF_Desktop_fnEnumSearches (IShellFolder2 *iface,
706 IEnumExtraSearch ** ppenum)
708 IGenericSFImpl *This = (IGenericSFImpl *)iface;
709 FIXME ("(%p)\n", This);
713 static HRESULT WINAPI ISF_Desktop_fnGetDefaultColumn (IShellFolder2 * iface,
714 DWORD dwRes, ULONG * pSort, ULONG * pDisplay)
716 IGenericSFImpl *This = (IGenericSFImpl *)iface;
718 TRACE ("(%p)\n", This);
727 static HRESULT WINAPI ISF_Desktop_fnGetDefaultColumnState (
728 IShellFolder2 * iface, UINT iColumn, DWORD * pcsFlags)
730 IGenericSFImpl *This = (IGenericSFImpl *)iface;
732 TRACE ("(%p)\n", This);
734 if (!pcsFlags || iColumn >= DESKTOPSHELLVIEWCOLUMNS)
737 *pcsFlags = DesktopSFHeader[iColumn].pcsFlags;
742 static HRESULT WINAPI ISF_Desktop_fnGetDetailsEx (IShellFolder2 * iface,
743 LPCITEMIDLIST pidl, const SHCOLUMNID * pscid, VARIANT * pv)
745 IGenericSFImpl *This = (IGenericSFImpl *)iface;
746 FIXME ("(%p)\n", This);
751 static HRESULT WINAPI ISF_Desktop_fnGetDetailsOf (IShellFolder2 * iface,
752 LPCITEMIDLIST pidl, UINT iColumn, SHELLDETAILS * psd)
754 IGenericSFImpl *This = (IGenericSFImpl *)iface;
758 TRACE ("(%p)->(%p %i %p)\n", This, pidl, iColumn, psd);
760 if (!psd || iColumn >= DESKTOPSHELLVIEWCOLUMNS)
765 psd->fmt = DesktopSFHeader[iColumn].fmt;
766 psd->cxChar = DesktopSFHeader[iColumn].cxChar;
767 psd->str.uType = STRRET_CSTR;
768 LoadStringA (shell32_hInstance, DesktopSFHeader[iColumn].colnameid,
769 psd->str.u.cStr, MAX_PATH);
773 /* the data from the pidl */
777 hr = IShellFolder_GetDisplayNameOf(iface, pidl,
778 SHGDN_NORMAL | SHGDN_INFOLDER, &psd->str);
781 _ILGetFileSize (pidl, psd->str.u.cStr, MAX_PATH);
784 _ILGetFileType (pidl, psd->str.u.cStr, MAX_PATH);
787 _ILGetFileDate (pidl, psd->str.u.cStr, MAX_PATH);
789 case 4: /* attributes */
790 _ILGetFileAttributes (pidl, psd->str.u.cStr, MAX_PATH);
794 psd->str.uType = STRRET_CSTR;
799 static HRESULT WINAPI ISF_Desktop_fnMapColumnToSCID (
800 IShellFolder2 * iface, UINT column, SHCOLUMNID * pscid)
802 IGenericSFImpl *This = (IGenericSFImpl *)iface;
803 FIXME ("(%p)\n", This);
807 static IShellFolder2Vtbl vt_MCFldr_ShellFolder2 =
809 ISF_Desktop_fnQueryInterface,
810 ISF_Desktop_fnAddRef,
811 ISF_Desktop_fnRelease,
812 ISF_Desktop_fnParseDisplayName,
813 ISF_Desktop_fnEnumObjects,
814 ISF_Desktop_fnBindToObject,
815 ISF_Desktop_fnBindToStorage,
816 ISF_Desktop_fnCompareIDs,
817 ISF_Desktop_fnCreateViewObject,
818 ISF_Desktop_fnGetAttributesOf,
819 ISF_Desktop_fnGetUIObjectOf,
820 ISF_Desktop_fnGetDisplayNameOf,
821 ISF_Desktop_fnSetNameOf,
823 ISF_Desktop_fnGetDefaultSearchGUID,
824 ISF_Desktop_fnEnumSearches,
825 ISF_Desktop_fnGetDefaultColumn,
826 ISF_Desktop_fnGetDefaultColumnState,
827 ISF_Desktop_fnGetDetailsEx,
828 ISF_Desktop_fnGetDetailsOf,
829 ISF_Desktop_fnMapColumnToSCID