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 (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv)
99 char szMyPath[MAX_PATH];
101 TRACE ("unkOut=%p %s\n", pUnkOuter, shdebugstr_guid (riid));
106 return CLASS_E_NOAGGREGATION;
108 if (!SHGetSpecialFolderPathA (0, szMyPath, CSIDL_DESKTOPDIRECTORY, TRUE))
111 sf = (IGenericSFImpl *) LocalAlloc (GMEM_ZEROINIT, sizeof (IGenericSFImpl));
113 return E_OUTOFMEMORY;
116 sf->lpVtbl = &vt_MCFldr_ShellFolder2;
117 sf->pidlRoot = _ILCreateDesktop (); /* my qualified pidl */
118 sf->sPathTarget = SHAlloc (strlen (szMyPath) + 1);
119 lstrcpyA (sf->sPathTarget, szMyPath);
121 if (!SUCCEEDED (IUnknown_QueryInterface (_IUnknown_ (sf), riid, ppv))) {
122 IUnknown_Release (_IUnknown_ (sf));
123 return E_NOINTERFACE;
126 TRACE ("--(%p)\n", sf);
130 /**************************************************************************
131 * ISF_Desktop_fnQueryInterface
133 * NOTES supports not IPersist/IPersistFolder
135 static HRESULT WINAPI ISF_Desktop_fnQueryInterface (IShellFolder2 * iface, REFIID riid, LPVOID * ppvObj)
137 IGenericSFImpl *This = (IGenericSFImpl *)iface;
139 TRACE ("(%p)->(%s,%p)\n", This, shdebugstr_guid (riid), ppvObj);
143 if (IsEqualIID (riid, &IID_IUnknown) || IsEqualIID (riid, &IID_IShellFolder)
144 || IsEqualIID (riid, &IID_IShellFolder2)) {
149 IUnknown_AddRef ((IUnknown *) (*ppvObj));
150 TRACE ("-- Interface: (%p)->(%p)\n", ppvObj, *ppvObj);
153 TRACE ("-- Interface: E_NOINTERFACE\n");
154 return E_NOINTERFACE;
157 static ULONG WINAPI ISF_Desktop_fnAddRef (IShellFolder2 * iface)
159 IGenericSFImpl *This = (IGenericSFImpl *)iface;
161 TRACE ("(%p)->(count=%lu)\n", This, This->ref);
163 return ++(This->ref);
166 static ULONG WINAPI ISF_Desktop_fnRelease (IShellFolder2 * iface)
168 IGenericSFImpl *This = (IGenericSFImpl *)iface;
170 TRACE ("(%p)->(count=%lu)\n", This, This->ref);
172 if (!--(This->ref)) {
173 TRACE ("-- destroying IShellFolder(%p)\n", This);
175 SHFree (This->pidlRoot);
176 if (This->sPathTarget)
177 SHFree (This->sPathTarget);
178 LocalFree ((HLOCAL) This);
184 /**************************************************************************
185 * ISF_Desktop_fnParseDisplayName
188 * "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" and "" binds
191 static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
194 LPOLESTR lpszDisplayName,
195 DWORD * pchEaten, LPITEMIDLIST * ppidl, DWORD * pdwAttributes)
197 IGenericSFImpl *This = (IGenericSFImpl *)iface;
199 WCHAR szElement[MAX_PATH];
200 LPCWSTR szNext = NULL;
201 LPITEMIDLIST pidlTemp = NULL;
203 char szPath[MAX_PATH];
207 TRACE ("(%p)->(HWND=%p,%p,%p=%s,%p,pidl=%p,%p)\n",
208 This, hwndOwner, pbc, lpszDisplayName, debugstr_w (lpszDisplayName), pchEaten, ppidl, pdwAttributes);
210 if (!lpszDisplayName || !ppidl)
216 *pchEaten = 0; /* strange but like the original */
218 if (lpszDisplayName[0] == ':' && lpszDisplayName[1] == ':') {
219 szNext = GetNextElementW (lpszDisplayName, szElement, MAX_PATH);
220 TRACE ("-- element: %s\n", debugstr_w (szElement));
221 SHCLSIDFromStringW (szElement + 2, &clsid);
222 pidlTemp = _ILCreateGuid (PT_GUID, &clsid);
223 } else if (PathGetDriveNumberW (lpszDisplayName) >= 0) {
224 /* it's a filesystem path with a drive. Let MyComputer parse it */
225 pidlTemp = _ILCreateMyComputer ();
226 szNext = lpszDisplayName;
227 } else if (PathIsUNCW(lpszDisplayName)) {
228 pidlTemp = _ILCreateNetwork();
229 szNext = lpszDisplayName;
231 /* it's a filesystem path on the desktop. Let a FSFolder parse it */
233 if (*lpszDisplayName) {
234 /* build a complete path to create a simple pidl */
235 lstrcpyA(szPath, This->sPathTarget);
236 PathAddBackslashA(szPath);
237 len = lstrlenA(szPath);
238 WideCharToMultiByte(CP_ACP, 0, lpszDisplayName, -1, szPath + len, MAX_PATH - len, NULL, NULL);
239 hr = _ILCreateFromPathA(szPath, &pidlTemp);
241 pidlTemp = _ILCreateMyComputer();
247 if (SUCCEEDED(hr) && pidlTemp) {
248 if (szNext && *szNext) {
249 hr = SHELL32_ParseNextElement (iface, hwndOwner, pbc, &pidlTemp, (LPOLESTR) szNext, pchEaten, pdwAttributes);
251 if (pdwAttributes && *pdwAttributes) {
252 hr = SHELL32_GetItemAttributes (_IShellFolder_ (This), pidlTemp, pdwAttributes);
259 TRACE ("(%p)->(-- ret=0x%08lx)\n", This, hr);
264 /**************************************************************************
265 * CreateDesktopEnumList()
267 static BOOL CreateDesktopEnumList(IEnumIDList *list, DWORD dwFlags)
270 char szPath[MAX_PATH];
272 TRACE("(%p)->(flags=0x%08lx) \n",list,dwFlags);
274 /*enumerate the root folders */
275 if(dwFlags & SHCONTF_FOLDERS)
279 /*create the pidl for This item */
280 ret = AddToEnumList(list, _ILCreateMyComputer());
282 if (ret && !RegOpenKeyExA(HKEY_LOCAL_MACHINE,
283 "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\explorer\\desktop\\NameSpace",
288 BOOL moreKeys = TRUE;
290 while (ret && moreKeys)
292 DWORD size = sizeof (iid);
293 LONG apiRet = RegEnumKeyExA(hkey, i, iid, &size, 0, NULL, NULL,
296 if (ERROR_SUCCESS == apiRet)
298 ret = AddToEnumList(list, _ILCreateGuidFromStrA(iid));
301 else if (ERROR_NO_MORE_ITEMS == apiRet)
310 /*enumerate the elements in %windir%\desktop */
311 SHGetSpecialFolderPathA(0, szPath, CSIDL_DESKTOPDIRECTORY, FALSE);
312 ret = ret && CreateFolderEnumList(list, szPath, dwFlags);
317 /**************************************************************************
318 * ISF_Desktop_fnEnumObjects
320 static HRESULT WINAPI ISF_Desktop_fnEnumObjects (IShellFolder2 * iface,
321 HWND hwndOwner, DWORD dwFlags, LPENUMIDLIST * ppEnumIDList)
323 IGenericSFImpl *This = (IGenericSFImpl *)iface;
325 TRACE ("(%p)->(HWND=%p flags=0x%08lx pplist=%p)\n", This, hwndOwner, dwFlags, ppEnumIDList);
327 *ppEnumIDList = IEnumIDList_Constructor();
329 CreateDesktopEnumList(*ppEnumIDList, dwFlags);
331 TRACE ("-- (%p)->(new ID List: %p)\n", This, *ppEnumIDList);
333 return *ppEnumIDList ? S_OK : E_OUTOFMEMORY;
336 /**************************************************************************
337 * ISF_Desktop_fnBindToObject
339 static HRESULT WINAPI ISF_Desktop_fnBindToObject (IShellFolder2 * iface,
340 LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, LPVOID * ppvOut)
342 IGenericSFImpl *This = (IGenericSFImpl *)iface;
344 TRACE ("(%p)->(pidl=%p,%p,%s,%p)\n", This, pidl, pbcReserved, shdebugstr_guid (riid), ppvOut);
346 return SHELL32_BindToChild (This->pidlRoot, This->sPathTarget, pidl, riid, ppvOut);
349 /**************************************************************************
350 * ISF_Desktop_fnBindToStorage
352 static HRESULT WINAPI ISF_Desktop_fnBindToStorage (IShellFolder2 * iface,
353 LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, LPVOID * ppvOut)
355 IGenericSFImpl *This = (IGenericSFImpl *)iface;
357 FIXME ("(%p)->(pidl=%p,%p,%s,%p) stub\n", This, pidl, pbcReserved, shdebugstr_guid (riid), ppvOut);
363 /**************************************************************************
364 * ISF_Desktop_fnCompareIDs
367 static HRESULT WINAPI ISF_Desktop_fnCompareIDs (IShellFolder2 * iface,
368 LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
370 IGenericSFImpl *This = (IGenericSFImpl *)iface;
374 TRACE ("(%p)->(0x%08lx,pidl1=%p,pidl2=%p)\n", This, lParam, pidl1, pidl2);
375 nReturn = SHELL32_CompareIDs (_IShellFolder_ (This), lParam, pidl1, pidl2);
376 TRACE ("-- %i\n", nReturn);
380 /**************************************************************************
381 * ISF_Desktop_fnCreateViewObject
383 static HRESULT WINAPI ISF_Desktop_fnCreateViewObject (IShellFolder2 * iface,
384 HWND hwndOwner, REFIID riid, LPVOID * ppvOut)
386 IGenericSFImpl *This = (IGenericSFImpl *)iface;
388 LPSHELLVIEW pShellView;
389 HRESULT hr = E_INVALIDARG;
391 TRACE ("(%p)->(hwnd=%p,%s,%p)\n", This, hwndOwner, shdebugstr_guid (riid), ppvOut);
396 if (IsEqualIID (riid, &IID_IDropTarget)) {
397 WARN ("IDropTarget not implemented\n");
399 } else if (IsEqualIID (riid, &IID_IContextMenu)) {
400 WARN ("IContextMenu not implemented\n");
402 } else if (IsEqualIID (riid, &IID_IShellView)) {
403 pShellView = IShellView_Constructor ((IShellFolder *) iface);
405 hr = IShellView_QueryInterface (pShellView, riid, ppvOut);
406 IShellView_Release (pShellView);
410 TRACE ("-- (%p)->(interface=%p)\n", This, ppvOut);
414 /**************************************************************************
415 * ISF_Desktop_fnGetAttributesOf
417 static HRESULT WINAPI ISF_Desktop_fnGetAttributesOf (IShellFolder2 * iface,
418 UINT cidl, LPCITEMIDLIST * apidl, DWORD * rgfInOut)
420 IGenericSFImpl *This = (IGenericSFImpl *)iface;
424 TRACE ("(%p)->(cidl=%d apidl=%p mask=0x%08lx)\n", This, cidl, apidl, *rgfInOut);
426 if ((!cidl) || (!apidl) || (!rgfInOut))
432 while (cidl > 0 && *apidl) {
434 SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
439 TRACE ("-- result=0x%08lx\n", *rgfInOut);
444 /**************************************************************************
445 * ISF_Desktop_fnGetUIObjectOf
448 * HWND hwndOwner, //[in ] Parent window for any output
449 * UINT cidl, //[in ] array size
450 * LPCITEMIDLIST* apidl, //[in ] simple pidl array
451 * REFIID riid, //[in ] Requested Interface
452 * UINT* prgfInOut, //[ ] reserved
453 * LPVOID* ppvObject) //[out] Resulting Interface
456 static HRESULT WINAPI ISF_Desktop_fnGetUIObjectOf (IShellFolder2 * iface,
459 LPCITEMIDLIST * apidl,
460 REFIID riid, UINT * prgfInOut, LPVOID * ppvOut)
462 IGenericSFImpl *This = (IGenericSFImpl *)iface;
465 IUnknown *pObj = NULL;
466 HRESULT hr = E_INVALIDARG;
468 TRACE ("(%p)->(%p,%u,apidl=%p,%s,%p,%p)\n",
469 This, hwndOwner, cidl, apidl, shdebugstr_guid (riid), prgfInOut, ppvOut);
474 if (IsEqualIID (riid, &IID_IContextMenu)) {
475 pObj = (LPUNKNOWN) ISvItemCm_Constructor ((IShellFolder *) iface, This->pidlRoot, apidl, cidl);
477 } else if (IsEqualIID (riid, &IID_IDataObject) && (cidl >= 1)) {
478 pObj = (LPUNKNOWN) IDataObject_Constructor (hwndOwner, This->pidlRoot, apidl, cidl);
480 } else if (IsEqualIID (riid, &IID_IExtractIconA) && (cidl == 1)) {
481 pidl = ILCombine (This->pidlRoot, apidl[0]);
482 pObj = (LPUNKNOWN) IExtractIconA_Constructor (pidl);
485 } else if (IsEqualIID (riid, &IID_IExtractIconW) && (cidl == 1)) {
486 pidl = ILCombine (This->pidlRoot, apidl[0]);
487 pObj = (LPUNKNOWN) IExtractIconW_Constructor (pidl);
490 } else if (IsEqualIID (riid, &IID_IDropTarget) && (cidl >= 1)) {
491 hr = IShellFolder_QueryInterface (iface, &IID_IDropTarget, (LPVOID *) & pObj);
492 } else if ((IsEqualIID(riid,&IID_IShellLinkW) || IsEqualIID(riid,&IID_IShellLinkA))
494 pidl = ILCombine (This->pidlRoot, apidl[0]);
495 hr = IShellLink_ConstructFromFile(NULL, riid, pidl, (LPVOID*)&pObj);
501 if (SUCCEEDED(hr) && !pObj)
506 TRACE ("(%p)->hr=0x%08lx\n", This, hr);
510 /**************************************************************************
511 * ISF_Desktop_fnGetDisplayNameOf
514 * special case: pidl = null gives desktop-name back
516 static HRESULT WINAPI ISF_Desktop_fnGetDisplayNameOf (IShellFolder2 * iface,
517 LPCITEMIDLIST pidl, DWORD dwFlags, LPSTRRET strRet)
519 IGenericSFImpl *This = (IGenericSFImpl *)iface;
521 CHAR szPath[MAX_PATH];
527 TRACE ("(%p)->(pidl=%p,0x%08lx,%p)\n", This, pidl, dwFlags, strRet);
533 if (_ILIsDesktop (pidl)) {
534 if ((GET_SHGDN_RELATION (dwFlags) == SHGDN_NORMAL) && (GET_SHGDN_FOR (dwFlags) == SHGDN_FORPARSING)) {
535 lstrcpyA (szPath, This->sPathTarget);
537 HCR_GetClassNameA(&CLSID_ShellDesktop, szPath, MAX_PATH);
539 } else if (_ILIsPidlSimple (pidl)) {
540 if ((clsid = _ILGetGUIDPointer (pidl))) {
541 if (GET_SHGDN_FOR (dwFlags) == SHGDN_FORPARSING) {
542 int bWantsForParsing;
545 * we can only get a filesystem path from a shellfolder if the value WantsFORPARSING in
546 * CLSID\\{...}\\shellfolder exists
547 * exception: the MyComputer folder has this keys not but like any filesystem backed
548 * folder it needs these behaviour
550 if (IsEqualIID (clsid, &CLSID_MyComputer)) {
551 bWantsForParsing = 1;
553 /* get the "WantsFORPARSING" flag from the registry */
556 lstrcpyA (szRegPath, "CLSID\\");
557 SHELL32_GUIDToStringA (clsid, &szRegPath[6]);
558 lstrcatA (szRegPath, "\\shellfolder");
561 SHGetValueA (HKEY_CLASSES_ROOT, szRegPath, "WantsFORPARSING", NULL, NULL, NULL));
564 if ((GET_SHGDN_RELATION (dwFlags) == SHGDN_NORMAL) && bWantsForParsing) {
565 /* we need the filesystem path to the destination folder. Only the folder itself can know it */
566 hr = SHELL32_GetDisplayNameOfChild (iface, pidl, dwFlags, szPath, MAX_PATH);
568 /* parsing name like ::{...} */
569 lstrcpyA (szPath, "::");
570 SHELL32_GUIDToStringA (clsid, &szPath[2]);
573 /* user friendly name */
574 HCR_GetClassNameA (clsid, szPath, MAX_PATH);
577 /* file system folder */
578 _ILSimpleGetText (pidl, szPath, MAX_PATH);
580 if (!_ILIsFolder(pidl))
581 SHELL_FS_ProcessDisplayFilename(szPath, dwFlags);
584 /* a complex pidl, let the subfolder do the work */
585 hr = SHELL32_GetDisplayNameOfChild (iface, pidl, dwFlags, szPath, MAX_PATH);
588 if (SUCCEEDED (hr)) {
589 strRet->uType = STRRET_CSTR;
590 lstrcpynA (strRet->u.cStr, szPath, MAX_PATH);
593 TRACE ("-- (%p)->(%s,0x%08lx)\n", This, szPath, hr);
597 /**************************************************************************
598 * ISF_Desktop_fnSetNameOf
599 * Changes the name of a file object or subfolder, possibly changing its item
600 * identifier in the process.
603 * HWND hwndOwner, //[in ] Owner window for output
604 * LPCITEMIDLIST pidl, //[in ] simple pidl of item to change
605 * LPCOLESTR lpszName, //[in ] the items new display name
606 * DWORD dwFlags, //[in ] SHGNO formatting flags
607 * LPITEMIDLIST* ppidlOut) //[out] simple pidl returned
609 static HRESULT WINAPI ISF_Desktop_fnSetNameOf (IShellFolder2 * iface, HWND hwndOwner, LPCITEMIDLIST pidl, /*simple pidl */
610 LPCOLESTR lpName, DWORD dwFlags, LPITEMIDLIST * pPidlOut)
612 IGenericSFImpl *This = (IGenericSFImpl *)iface;
614 FIXME ("(%p)->(%p,pidl=%p,%s,%lu,%p)\n", This, hwndOwner, pidl, debugstr_w (lpName), dwFlags, pPidlOut);
619 static HRESULT WINAPI ISF_Desktop_fnGetDefaultSearchGUID (IShellFolder2 * iface, GUID * pguid)
621 IGenericSFImpl *This = (IGenericSFImpl *)iface;
623 FIXME ("(%p)\n", This);
626 static HRESULT WINAPI ISF_Desktop_fnEnumSearches (IShellFolder2 * iface, IEnumExtraSearch ** ppenum)
628 IGenericSFImpl *This = (IGenericSFImpl *)iface;
629 FIXME ("(%p)\n", This);
632 static HRESULT WINAPI ISF_Desktop_fnGetDefaultColumn (IShellFolder2 * iface,
633 DWORD dwRes, ULONG * pSort, ULONG * pDisplay)
635 IGenericSFImpl *This = (IGenericSFImpl *)iface;
637 TRACE ("(%p)\n", This);
646 static HRESULT WINAPI ISF_Desktop_fnGetDefaultColumnState (IShellFolder2 * iface, UINT iColumn, DWORD * pcsFlags)
648 IGenericSFImpl *This = (IGenericSFImpl *)iface;
650 TRACE ("(%p)\n", This);
652 if (!pcsFlags || iColumn >= DESKTOPSHELLVIEWCOLUMNS)
655 *pcsFlags = DesktopSFHeader[iColumn].pcsFlags;
659 static HRESULT WINAPI ISF_Desktop_fnGetDetailsEx (IShellFolder2 * iface,
660 LPCITEMIDLIST pidl, const SHCOLUMNID * pscid, VARIANT * pv)
662 IGenericSFImpl *This = (IGenericSFImpl *)iface;
663 FIXME ("(%p)\n", This);
667 static HRESULT WINAPI ISF_Desktop_fnGetDetailsOf (IShellFolder2 * iface,
668 LPCITEMIDLIST pidl, UINT iColumn, SHELLDETAILS * psd)
670 IGenericSFImpl *This = (IGenericSFImpl *)iface;
674 TRACE ("(%p)->(%p %i %p)\n", This, pidl, iColumn, psd);
676 if (!psd || iColumn >= DESKTOPSHELLVIEWCOLUMNS)
680 psd->fmt = DesktopSFHeader[iColumn].fmt;
681 psd->cxChar = DesktopSFHeader[iColumn].cxChar;
682 psd->str.uType = STRRET_CSTR;
683 LoadStringA (shell32_hInstance, DesktopSFHeader[iColumn].colnameid, psd->str.u.cStr, MAX_PATH);
686 /* the data from the pidl */
689 hr = IShellFolder_GetDisplayNameOf (iface, pidl, SHGDN_NORMAL | SHGDN_INFOLDER, &psd->str);
692 _ILGetFileSize (pidl, psd->str.u.cStr, MAX_PATH);
695 _ILGetFileType (pidl, psd->str.u.cStr, MAX_PATH);
698 _ILGetFileDate (pidl, psd->str.u.cStr, MAX_PATH);
700 case 4: /* attributes */
701 _ILGetFileAttributes (pidl, psd->str.u.cStr, MAX_PATH);
705 psd->str.uType = STRRET_CSTR;
710 static HRESULT WINAPI ISF_Desktop_fnMapColumnToSCID (IShellFolder2 * iface, UINT column, SHCOLUMNID * pscid)
712 IGenericSFImpl *This = (IGenericSFImpl *)iface;
713 FIXME ("(%p)\n", This);
717 static IShellFolder2Vtbl vt_MCFldr_ShellFolder2 =
719 ISF_Desktop_fnQueryInterface,
720 ISF_Desktop_fnAddRef,
721 ISF_Desktop_fnRelease,
722 ISF_Desktop_fnParseDisplayName,
723 ISF_Desktop_fnEnumObjects,
724 ISF_Desktop_fnBindToObject,
725 ISF_Desktop_fnBindToStorage,
726 ISF_Desktop_fnCompareIDs,
727 ISF_Desktop_fnCreateViewObject,
728 ISF_Desktop_fnGetAttributesOf,
729 ISF_Desktop_fnGetUIObjectOf,
730 ISF_Desktop_fnGetDisplayNameOf,
731 ISF_Desktop_fnSetNameOf,
733 ISF_Desktop_fnGetDefaultSearchGUID,
734 ISF_Desktop_fnEnumSearches,
735 ISF_Desktop_fnGetDefaultColumn,
736 ISF_Desktop_fnGetDefaultColumnState,
737 ISF_Desktop_fnGetDetailsEx,
738 ISF_Desktop_fnGetDetailsOf,
739 ISF_Desktop_fnMapColumnToSCID};