2 * Network Places (Neighbourhood) folder
4 * Copyright 1997 Marcus Meissner
5 * Copyright 1998, 1999, 2002 Juergen Schmied
6 * Copyright 2003 Mike McCormack for Codeweavers
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 WINE_DEFAULT_DEBUG_CHANNEL (shell
);
27 /***********************************************************************
28 * IShellFolder implementation
32 const IShellFolder2Vtbl
*lpVtbl
;
34 const IPersistFolder2Vtbl
*lpVtblPersistFolder2
;
36 /* both paths are parsible from the desktop */
37 LPITEMIDLIST pidlRoot
; /* absolute pidl */
40 static const IShellFolder2Vtbl vt_ShellFolder2
;
41 static const IPersistFolder2Vtbl vt_NP_PersistFolder2
;
44 #define _IPersistFolder2_Offset ((INT_PTR)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2)))
45 #define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset);
47 #define _IUnknown_(This) ((IUnknown*)&(This)->lpVtbl)
48 #define _IShellFolder_(This) ((IShellFolder*)&(This)->lpVtbl)
49 #define _IPersistFolder2_(This) (&(This)->lpVtblPersistFolder2)
51 static shvheader NetworkPlacesSFHeader
[] = {
52 {IDS_SHV_COLUMN8
, SHCOLSTATE_TYPE_STR
| SHCOLSTATE_ONBYDEFAULT
, LVCFMT_RIGHT
, 15},
53 {IDS_SHV_COLUMN13
, SHCOLSTATE_TYPE_STR
| SHCOLSTATE_ONBYDEFAULT
, LVCFMT_RIGHT
, 10},
54 {IDS_SHV_COLUMN_WORKGROUP
, SHCOLSTATE_TYPE_STR
| SHCOLSTATE_ONBYDEFAULT
, LVCFMT_RIGHT
, 15},
55 {IDS_SHV_NETWORKLOCATION
, SHCOLSTATE_TYPE_STR
| SHCOLSTATE_ONBYDEFAULT
, LVCFMT_RIGHT
, 15}
59 #define COLUMN_CATEGORY 1
60 #define COLUMN_WORKGROUP 2
61 #define COLUMN_NETLOCATION 3
63 #define NETWORKPLACESSHELLVIEWCOLUMNS 4
65 /**************************************************************************
66 * ISF_NetworkPlaces_Constructor
68 HRESULT WINAPI
ISF_NetworkPlaces_Constructor (IUnknown
* pUnkOuter
, REFIID riid
, LPVOID
* ppv
)
72 TRACE ("unkOut=%p %s\n", pUnkOuter
, shdebugstr_guid (riid
));
77 return CLASS_E_NOAGGREGATION
;
79 sf
= HeapAlloc (GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof (IGenericSFImpl
));
84 sf
->lpVtbl
= &vt_ShellFolder2
;
85 sf
->lpVtblPersistFolder2
= &vt_NP_PersistFolder2
;
86 sf
->pidlRoot
= _ILCreateNetHood(); /* my qualified pidl */
88 if (FAILED (IUnknown_QueryInterface (_IUnknown_ (sf
), riid
, ppv
)))
90 IUnknown_Release (_IUnknown_ (sf
));
94 TRACE ("--(%p)\n", sf
);
98 /**************************************************************************
99 * ISF_NetworkPlaces_fnQueryInterface
102 * supports not IPersist/IPersistFolder
104 static HRESULT WINAPI
ISF_NetworkPlaces_fnQueryInterface (IShellFolder2
*iface
, REFIID riid
, LPVOID
*ppvObj
)
106 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
108 TRACE ("(%p)->(%s,%p)\n", This
, shdebugstr_guid (riid
), ppvObj
);
112 if (IsEqualIID (riid
, &IID_IUnknown
) ||
113 IsEqualIID (riid
, &IID_IShellFolder
) ||
114 IsEqualIID (riid
, &IID_IShellFolder2
))
118 else if (IsEqualIID (riid
, &IID_IPersist
) ||
119 IsEqualIID (riid
, &IID_IPersistFolder
) ||
120 IsEqualIID (riid
, &IID_IPersistFolder2
))
122 *ppvObj
= (void *)_IPersistFolder2_ (This
);
127 IUnknown_AddRef ((IUnknown
*) (*ppvObj
));
128 TRACE ("-- Interface: (%p)->(%p)\n", ppvObj
, *ppvObj
);
131 TRACE ("-- Interface: E_NOINTERFACE\n");
132 return E_NOINTERFACE
;
135 static ULONG WINAPI
ISF_NetworkPlaces_fnAddRef (IShellFolder2
* iface
)
137 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
138 ULONG refCount
= InterlockedIncrement(&This
->ref
);
140 TRACE ("(%p)->(count=%u)\n", This
, refCount
- 1);
145 static ULONG WINAPI
ISF_NetworkPlaces_fnRelease (IShellFolder2
* iface
)
147 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
148 ULONG refCount
= InterlockedDecrement(&This
->ref
);
150 TRACE ("(%p)->(count=%u)\n", This
, refCount
+ 1);
153 TRACE ("-- destroying IShellFolder(%p)\n", This
);
154 SHFree (This
->pidlRoot
);
155 HeapFree (GetProcessHeap(), 0, This
);
160 /**************************************************************************
161 * ISF_NetworkPlaces_fnParseDisplayName
163 static HRESULT WINAPI
ISF_NetworkPlaces_fnParseDisplayName (IShellFolder2
* iface
,
164 HWND hwndOwner
, LPBC pbcReserved
, LPOLESTR lpszDisplayName
,
165 DWORD
* pchEaten
, LPITEMIDLIST
* ppidl
, DWORD
* pdwAttributes
)
167 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
169 HRESULT hr
= E_UNEXPECTED
;
171 TRACE ("(%p)->(HWND=%p,%p,%p=%s,%p,pidl=%p,%p)\n", This
,
172 hwndOwner
, pbcReserved
, lpszDisplayName
, debugstr_w (lpszDisplayName
),
173 pchEaten
, ppidl
, pdwAttributes
);
177 *pchEaten
= 0; /* strange but like the original */
179 TRACE ("(%p)->(-- ret=0x%08x)\n", This
, hr
);
184 /**************************************************************************
185 * ISF_NetworkPlaces_fnEnumObjects
187 static HRESULT WINAPI
ISF_NetworkPlaces_fnEnumObjects (IShellFolder2
* iface
,
188 HWND hwndOwner
, DWORD dwFlags
, LPENUMIDLIST
* ppEnumIDList
)
190 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
192 TRACE ("(%p)->(HWND=%p flags=0x%08x pplist=%p)\n", This
,
193 hwndOwner
, dwFlags
, ppEnumIDList
);
195 *ppEnumIDList
= NULL
; //IEnumIDList_Constructor();
197 TRACE ("-- (%p)->(new ID List: %p)\n", This
, *ppEnumIDList
);
199 // return (*ppEnumIDList) ? S_OK : E_OUTOFMEMORY;
202 /**************************************************************************
203 * ISF_NetworkPlaces_fnBindToObject
205 static HRESULT WINAPI
ISF_NetworkPlaces_fnBindToObject (IShellFolder2
* iface
,
206 LPCITEMIDLIST pidl
, LPBC pbcReserved
, REFIID riid
, LPVOID
* ppvOut
)
208 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
210 TRACE ("(%p)->(pidl=%p,%p,%s,%p)\n", This
,
211 pidl
, pbcReserved
, shdebugstr_guid (riid
), ppvOut
);
213 return SHELL32_BindToChild (This
->pidlRoot
, NULL
, pidl
, riid
, ppvOut
);
216 /**************************************************************************
217 * ISF_NetworkPlaces_fnBindToStorage
219 static HRESULT WINAPI
ISF_NetworkPlaces_fnBindToStorage (IShellFolder2
* iface
,
220 LPCITEMIDLIST pidl
, LPBC pbcReserved
, REFIID riid
, LPVOID
* ppvOut
)
222 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
224 FIXME ("(%p)->(pidl=%p,%p,%s,%p) stub\n", This
,
225 pidl
, pbcReserved
, shdebugstr_guid (riid
), ppvOut
);
231 /**************************************************************************
232 * ISF_NetworkPlaces_fnCompareIDs
235 static HRESULT WINAPI
ISF_NetworkPlaces_fnCompareIDs (IShellFolder2
* iface
,
236 LPARAM lParam
, LPCITEMIDLIST pidl1
, LPCITEMIDLIST pidl2
)
238 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
241 TRACE ("(%p)->(0x%08lx,pidl1=%p,pidl2=%p)\n", This
, lParam
, pidl1
, pidl2
);
242 nReturn
= SHELL32_CompareIDs (_IShellFolder_ (This
), lParam
, pidl1
, pidl2
);
243 TRACE ("-- %i\n", nReturn
);
247 /**************************************************************************
248 * ISF_NetworkPlaces_fnCreateViewObject
250 static HRESULT WINAPI
ISF_NetworkPlaces_fnCreateViewObject (IShellFolder2
* iface
,
251 HWND hwndOwner
, REFIID riid
, LPVOID
* ppvOut
)
253 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
254 LPSHELLVIEW pShellView
;
255 HRESULT hr
= E_INVALIDARG
;
257 TRACE ("(%p)->(hwnd=%p,%s,%p)\n", This
,
258 hwndOwner
, shdebugstr_guid (riid
), ppvOut
);
265 if (IsEqualIID (riid
, &IID_IDropTarget
))
267 WARN ("IDropTarget not implemented\n");
270 else if (IsEqualIID (riid
, &IID_IContextMenu
))
272 WARN ("IContextMenu not implemented\n");
275 else if (IsEqualIID (riid
, &IID_IShellView
))
277 pShellView
= IShellView_Constructor ((IShellFolder
*) iface
);
280 hr
= IShellView_QueryInterface (pShellView
, riid
, ppvOut
);
281 IShellView_Release (pShellView
);
284 TRACE ("-- (%p)->(interface=%p)\n", This
, ppvOut
);
288 /**************************************************************************
289 * ISF_NetworkPlaces_fnGetAttributesOf
291 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetAttributesOf (IShellFolder2
* iface
,
292 UINT cidl
, LPCITEMIDLIST
* apidl
, DWORD
* rgfInOut
)
294 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
295 static const DWORD dwNethoodAttributes
=
296 SFGAO_STORAGE
| SFGAO_HASPROPSHEET
| SFGAO_STORAGEANCESTOR
|
297 SFGAO_FILESYSANCESTOR
| SFGAO_FOLDER
| SFGAO_FILESYSTEM
| SFGAO_HASSUBFOLDER
| SFGAO_CANRENAME
| SFGAO_CANDELETE
;
300 TRACE ("(%p)->(cidl=%d apidl=%p mask=%p (0x%08x))\n", This
,
301 cidl
, apidl
, rgfInOut
, rgfInOut
? *rgfInOut
: 0);
312 *rgfInOut
= dwNethoodAttributes
;
316 while (cidl
> 0 && *apidl
)
319 SHELL32_GetItemAttributes (_IShellFolder_ (This
), *apidl
, rgfInOut
);
325 /* make sure SFGAO_VALIDATE is cleared, some apps depend on that */
326 *rgfInOut
&= ~SFGAO_VALIDATE
;
328 TRACE ("-- result=0x%08x\n", *rgfInOut
);
332 /**************************************************************************
333 * ISF_NetworkPlaces_fnGetUIObjectOf
336 * hwndOwner [in] Parent window for any output
337 * cidl [in] array size
338 * apidl [in] simple pidl array
339 * riid [in] Requested Interface
340 * prgfInOut [ ] reserved
341 * ppvObject [out] Resulting Interface
344 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetUIObjectOf (IShellFolder2
* iface
,
345 HWND hwndOwner
, UINT cidl
, LPCITEMIDLIST
* apidl
, REFIID riid
,
346 UINT
* prgfInOut
, LPVOID
* ppvOut
)
348 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
351 IUnknown
*pObj
= NULL
;
352 HRESULT hr
= E_INVALIDARG
;
354 TRACE ("(%p)->(%p,%u,apidl=%p,%s,%p,%p)\n", This
,
355 hwndOwner
, cidl
, apidl
, shdebugstr_guid (riid
), prgfInOut
, ppvOut
);
362 if (IsEqualIID (riid
, &IID_IContextMenu
) && (cidl
>= 1))
364 hr
= CDefFolderMenu_Create2(This
->pidlRoot
, hwndOwner
, cidl
, apidl
, (IShellFolder
*)iface
, NULL
, 0, NULL
, (IContextMenu
**)&pObj
);
366 else if (IsEqualIID (riid
, &IID_IDataObject
) && (cidl
>= 1))
368 pObj
= (LPUNKNOWN
) IDataObject_Constructor (hwndOwner
, This
->pidlRoot
, apidl
, cidl
);
371 else if (IsEqualIID (riid
, &IID_IExtractIconA
) && (cidl
== 1))
373 pidl
= ILCombine (This
->pidlRoot
, apidl
[0]);
374 pObj
= (LPUNKNOWN
) IExtractIconA_Constructor (pidl
);
378 else if (IsEqualIID (riid
, &IID_IExtractIconW
) && (cidl
== 1))
380 pidl
= ILCombine (This
->pidlRoot
, apidl
[0]);
381 pObj
= (LPUNKNOWN
) IExtractIconW_Constructor (pidl
);
385 else if (IsEqualIID (riid
, &IID_IDropTarget
) && (cidl
>= 1))
387 hr
= IShellFolder_QueryInterface (iface
, &IID_IDropTarget
, (LPVOID
*) & pObj
);
392 if (SUCCEEDED(hr
) && !pObj
)
396 TRACE ("(%p)->hr=0x%08x\n", This
, hr
);
400 /**************************************************************************
401 * ISF_NetworkPlaces_fnGetDisplayNameOf
404 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetDisplayNameOf (IShellFolder2
* iface
,
405 LPCITEMIDLIST pidl
, DWORD dwFlags
, LPSTRRET strRet
)
407 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
409 FIXME ("(%p)->(pidl=%p,0x%08x,%p)\n", This
, pidl
, dwFlags
, strRet
);
418 /**************************************************************************
419 * ISF_NetworkPlaces_fnSetNameOf
420 * Changes the name of a file object or subfolder, possibly changing its item
421 * identifier in the process.
424 * hwndOwner [in] Owner window for output
425 * pidl [in] simple pidl of item to change
426 * lpszName [in] the items new display name
427 * dwFlags [in] SHGNO formatting flags
428 * ppidlOut [out] simple pidl returned
430 static HRESULT WINAPI
ISF_NetworkPlaces_fnSetNameOf (IShellFolder2
* iface
,
431 HWND hwndOwner
, LPCITEMIDLIST pidl
, /*simple pidl */
432 LPCOLESTR lpName
, DWORD dwFlags
, LPITEMIDLIST
* pPidlOut
)
434 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
435 FIXME ("(%p)->(%p,pidl=%p,%s,%u,%p)\n", This
,
436 hwndOwner
, pidl
, debugstr_w (lpName
), dwFlags
, pPidlOut
);
440 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetDefaultSearchGUID (
441 IShellFolder2
* iface
, GUID
* pguid
)
443 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
444 FIXME ("(%p)\n", This
);
448 static HRESULT WINAPI
ISF_NetworkPlaces_fnEnumSearches (IShellFolder2
* iface
,
449 IEnumExtraSearch
** ppenum
)
451 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
452 FIXME ("(%p)\n", This
);
456 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetDefaultColumn (IShellFolder2
* iface
,
457 DWORD dwRes
, ULONG
* pSort
, ULONG
* pDisplay
)
459 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
461 TRACE ("(%p)\n", This
);
471 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetDefaultColumnState (
472 IShellFolder2
* iface
, UINT iColumn
, DWORD
* pcsFlags
)
474 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
476 TRACE ("(%p)\n", This
);
478 if (!pcsFlags
|| iColumn
>= NETWORKPLACESSHELLVIEWCOLUMNS
)
480 *pcsFlags
= NetworkPlacesSFHeader
[iColumn
].pcsFlags
;
484 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetDetailsEx (IShellFolder2
* iface
,
485 LPCITEMIDLIST pidl
, const SHCOLUMNID
* pscid
, VARIANT
* pv
)
487 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
488 FIXME ("(%p)\n", This
);
492 static HRESULT WINAPI
ISF_NetworkPlaces_fnGetDetailsOf (IShellFolder2
* iface
,
493 LPCITEMIDLIST pidl
, UINT iColumn
, SHELLDETAILS
* psd
)
495 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
496 WCHAR buffer
[MAX_PATH
] = {0};
499 if (iColumn
>= NETWORKPLACESSHELLVIEWCOLUMNS
)
502 psd
->fmt
= NetworkPlacesSFHeader
[iColumn
].fmt
;
503 psd
->cxChar
= NetworkPlacesSFHeader
[iColumn
].cxChar
;
506 psd
->str
.uType
= STRRET_WSTR
;
507 if (LoadStringW(shell32_hInstance
, NetworkPlacesSFHeader
[iColumn
].colnameid
, buffer
, MAX_PATH
))
508 hr
= SHStrDupW(buffer
, &psd
->str
.u
.pOleStr
);
513 if (iColumn
== COLUMN_NAME
)
514 return IShellFolder2_GetDisplayNameOf(iface
, pidl
, SHGDN_NORMAL
, &psd
->str
);
516 FIXME ("(%p)->(%p %i %p)\n", This
, pidl
, iColumn
, psd
);
521 static HRESULT WINAPI
ISF_NetworkPlaces_fnMapColumnToSCID (IShellFolder2
* iface
,
522 UINT column
, SHCOLUMNID
* pscid
)
524 IGenericSFImpl
*This
= (IGenericSFImpl
*)iface
;
526 FIXME ("(%p)\n", This
);
531 static const IShellFolder2Vtbl vt_ShellFolder2
= {
532 ISF_NetworkPlaces_fnQueryInterface
,
533 ISF_NetworkPlaces_fnAddRef
,
534 ISF_NetworkPlaces_fnRelease
,
535 ISF_NetworkPlaces_fnParseDisplayName
,
536 ISF_NetworkPlaces_fnEnumObjects
,
537 ISF_NetworkPlaces_fnBindToObject
,
538 ISF_NetworkPlaces_fnBindToStorage
,
539 ISF_NetworkPlaces_fnCompareIDs
,
540 ISF_NetworkPlaces_fnCreateViewObject
,
541 ISF_NetworkPlaces_fnGetAttributesOf
,
542 ISF_NetworkPlaces_fnGetUIObjectOf
,
543 ISF_NetworkPlaces_fnGetDisplayNameOf
,
544 ISF_NetworkPlaces_fnSetNameOf
,
546 ISF_NetworkPlaces_fnGetDefaultSearchGUID
,
547 ISF_NetworkPlaces_fnEnumSearches
,
548 ISF_NetworkPlaces_fnGetDefaultColumn
,
549 ISF_NetworkPlaces_fnGetDefaultColumnState
,
550 ISF_NetworkPlaces_fnGetDetailsEx
,
551 ISF_NetworkPlaces_fnGetDetailsOf
,
552 ISF_NetworkPlaces_fnMapColumnToSCID
555 /************************************************************************
556 * INPFldr_PersistFolder2_QueryInterface
558 static HRESULT WINAPI
INPFldr_PersistFolder2_QueryInterface (IPersistFolder2
* iface
,
559 REFIID iid
, LPVOID
* ppvObj
)
561 _ICOM_THIS_From_IPersistFolder2 (IGenericSFImpl
, iface
);
563 TRACE ("(%p)\n", This
);
565 return IUnknown_QueryInterface (_IUnknown_ (This
), iid
, ppvObj
);
568 /************************************************************************
569 * INPFldr_PersistFolder2_AddRef
571 static ULONG WINAPI
INPFldr_PersistFolder2_AddRef (IPersistFolder2
* iface
)
573 _ICOM_THIS_From_IPersistFolder2 (IGenericSFImpl
, iface
);
575 TRACE ("(%p)->(count=%u)\n", This
, This
->ref
);
577 return IUnknown_AddRef (_IUnknown_ (This
));
580 /************************************************************************
581 * ISFPersistFolder_Release
583 static ULONG WINAPI
INPFldr_PersistFolder2_Release (IPersistFolder2
* iface
)
585 _ICOM_THIS_From_IPersistFolder2 (IGenericSFImpl
, iface
);
587 TRACE ("(%p)->(count=%u)\n", This
, This
->ref
);
589 return IUnknown_Release (_IUnknown_ (This
));
592 /************************************************************************
593 * INPFldr_PersistFolder2_GetClassID
595 static HRESULT WINAPI
INPFldr_PersistFolder2_GetClassID (
596 IPersistFolder2
* iface
, CLSID
* lpClassId
)
598 _ICOM_THIS_From_IPersistFolder2 (IGenericSFImpl
, iface
);
600 TRACE ("(%p)\n", This
);
605 *lpClassId
= CLSID_NetworkPlaces
;
610 /************************************************************************
611 * INPFldr_PersistFolder2_Initialize
613 * NOTES: it makes no sense to change the pidl
615 static HRESULT WINAPI
INPFldr_PersistFolder2_Initialize (
616 IPersistFolder2
* iface
, LPCITEMIDLIST pidl
)
618 _ICOM_THIS_From_IPersistFolder2 (IGenericSFImpl
, iface
);
620 TRACE ("(%p)->(%p)\n", This
, pidl
);
625 /**************************************************************************
626 * IPersistFolder2_fnGetCurFolder
628 static HRESULT WINAPI
INPFldr_PersistFolder2_GetCurFolder (
629 IPersistFolder2
* iface
, LPITEMIDLIST
* pidl
)
631 _ICOM_THIS_From_IPersistFolder2 (IGenericSFImpl
, iface
);
633 TRACE ("(%p)->(%p)\n", This
, pidl
);
638 *pidl
= ILClone (This
->pidlRoot
);
643 static const IPersistFolder2Vtbl vt_NP_PersistFolder2
=
645 INPFldr_PersistFolder2_QueryInterface
,
646 INPFldr_PersistFolder2_AddRef
,
647 INPFldr_PersistFolder2_Release
,
648 INPFldr_PersistFolder2_GetClassID
,
649 INPFldr_PersistFolder2_Initialize
,
650 INPFldr_PersistFolder2_GetCurFolder