28#define HACKY_UNC_PATHS
38 pidl->mkid.cb = cbData;
39 wcscpy((
WCHAR*)&pidl->mkid.abID[0], lpNetworkPlace);
40 *(
WORD*)((
char*)pidl + cbData) = 0;
52 CComPtr<IDefaultExtractIconInit> initIcon;
95#define COLUMN_CATEGORY 1
96#define COLUMN_WORKGROUP 2
97#define COLUMN_NETLOCATION 3
99#define NETWORKPLACESSHELLVIEWCOLUMNS 4
127 DWORD dSize = 0x1000;
134 ERR(
"WNetOpenEnum() failed: %x\n", dRet);
141 ERR(
"CoTaskMemAlloc() failed\n");
156 for (; dCount; dCount--)
169#ifdef HACKY_UNC_PATHS
176 ERR(
"ILCreateFromPathW() failed\n");
190 TRACE(
"Done: %u\n", bRet);
255#ifdef HACKY_UNC_PATHS
272 *pdwAttributes = SFGAO_FILESYSTEM | SFGAO_CANLINK | SFGAO_FOLDER | SFGAO_HASSUBFOLDER | SFGAO_FILESYSANCESTOR;
277 TRACE(
"(%p)->(HWND=%p,%p,%p=%s,%p,pidl=%p,%p)\n",
this,
278 hwndOwner, pbcReserved, lpszDisplayName,
debugstr_w (lpszDisplayName),
279 pchEaten, ppidl, pdwAttributes);
285 TRACE(
"(%p)->(-- ret=0x%08x)\n",
this,
hr);
303#ifdef HACKY_UNC_PATHS
305 PERSIST_FOLDER_TARGET_INFO pfti = {0};
306 pfti.dwAttributes = -1;
321 FIXME(
"(%p)->(pidl=%p,%p,%s,%p) stub\n",
this,
342 CComPtr<IShellView> pShellView;
345 TRACE(
"(%p)->(hwnd=%p,%s,%p)\n",
this,
355 WARN(
"IDropTarget not implemented\n");
368 TRACE(
"-- (%p)->(interface=%p)\n",
this, ppvOut);
377 static const DWORD dwNethoodAttributes =
378 SFGAO_STORAGE | SFGAO_HASPROPSHEET | SFGAO_STORAGEANCESTOR |
379 SFGAO_FILESYSANCESTOR | SFGAO_FOLDER | SFGAO_FILESYSTEM | SFGAO_HASSUBFOLDER | SFGAO_CANRENAME | SFGAO_CANDELETE;
382 TRACE(
"(%p)->(cidl=%d apidl=%p mask=%p (0x%08x))\n",
this,
383 cidl, apidl, rgfInOut, rgfInOut ? *rgfInOut : 0);
394 *rgfInOut = dwNethoodAttributes;
398#ifdef HACKY_UNC_PATHS
399 *rgfInOut = SFGAO_FILESYSTEM | SFGAO_CANLINK | SFGAO_FOLDER | SFGAO_HASSUBFOLDER | SFGAO_FILESYSANCESTOR;
404 *rgfInOut &= ~SFGAO_VALIDATE;
406 TRACE(
"-- result=0x%08x\n", *rgfInOut);
428 TRACE(
"(%p)->(%p,%u,apidl=%p,%s,%p,%p)\n",
this,
468 TRACE(
"(%p)->hr=0x%08x\n",
this,
hr);
478 if (!strRet || !pidl || !pidl->mkid.cb)
481#ifdef HACKY_UNC_PATHS
482 return SHSetStrRet(strRet, (
LPCWSTR)pidl->mkid.abID);
502 FIXME(
"(%p)->(%p,pidl=%p,%s,%u,%p)\n",
this,
509 FIXME(
"(%p)\n",
this);
515 FIXME(
"(%p)\n",
this);
521 TRACE(
"(%p)\n",
this);
533 TRACE(
"(%p)\n",
this);
543 FIXME(
"(%p)\n",
this);
560 FIXME(
"(%p)->(%p %i %p)\n",
this, pidl, iColumn, psd);
567 FIXME(
"(%p)\n",
this);
577 TRACE(
"(%p)\n",
this);
582 *lpClassId = CLSID_NetworkPlaces;
606 TRACE(
"(%p)->(%p)\n",
this, pidl);
HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pcsfv, IShellView **ppsv)
HRESULT IDataObject_Constructor(HWND hwndOwner, PCIDLIST_ABSOLUTE pMyPidl, PCUIDLIST_RELATIVE_ARRAY apidl, UINT cidl, BOOL bExtendedObject, IDataObject **dataObject)
HRESULT CNetFolderExtractIcon_CreateInstance(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppvOut)
static HRESULT CALLBACK CNetFolderBackgroundMenuCB(IShellFolder *psf, HWND hwnd, IDataObject *pdtobj, UINT uMsg, WPARAM wParam, LPARAM lParam)
static shvheader NetworkPlacesSFHeader[]
HRESULT CALLBACK NetFolderMenuCallback(IShellFolder *psf, HWND hwnd, IDataObject *pdtobj, UINT uMsg, WPARAM wParam, LPARAM lParam)
LPITEMIDLIST ILCreateFromNetworkPlaceW(LPCWSTR lpNetworkPlace)
#define NETWORKPLACESSHELLVIEWCOLUMNS
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void shell(int argc, const char *argv[])
BOOL AddToEnumList(LPITEMIDLIST pidl)
BOOL EnumerateRec(LPNETRESOURCE lpNet)
HRESULT WINAPI Initialize(HWND hwndOwner, DWORD dwFlags)
BOOL CreateMyCompEnumList(DWORD dwFlags)
STDMETHOD() GetDetailsOf(PCUITEMID_CHILD pidl, UINT iColumn, SHELLDETAILS *psd) override
STDMETHOD() GetClassID(CLSID *lpClassId) override
STDMETHOD() Initialize(PCIDLIST_ABSOLUTE pidl) override
STDMETHOD() GetDefaultSearchGUID(GUID *pguid) override
STDMETHOD() CreateViewObject(HWND hwndOwner, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFlags, LPSTRRET strRet) override
STDMETHOD() GetDefaultColumnState(UINT iColumn, DWORD *pcsFlags) override
STDMETHOD() ParseDisplayName(HWND hwndOwner, LPBC pbc, LPOLESTR lpszDisplayName, DWORD *pchEaten, PIDLIST_RELATIVE *ppidl, DWORD *pdwAttributes) override
STDMETHOD() GetAttributesOf(UINT cidl, PCUITEMID_CHILD_ARRAY apidl, DWORD *rgfInOut) override
STDMETHOD() BindToStorage(PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() GetCurFolder(PIDLIST_ABSOLUTE *pidl) override
STDMETHOD() GetDetailsEx(PCUITEMID_CHILD pidl, const SHCOLUMNID *pscid, VARIANT *pv) override
STDMETHOD() SetNameOf(HWND hwndOwner, PCUITEMID_CHILD pidl, LPCOLESTR lpName, DWORD dwFlags, PITEMID_CHILD *pPidlOut) override
STDMETHOD() BindToObject(PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() EnumSearches(IEnumExtraSearch **ppenum) override
STDMETHOD() GetUIObjectOf(HWND hwndOwner, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, REFIID riid, UINT *prgfInOut, LPVOID *ppvOut) override
STDMETHOD() GetDefaultColumn(DWORD dwRes, ULONG *pSort, ULONG *pDisplay) override
STDMETHOD() EnumObjects(HWND hwndOwner, DWORD dwFlags, LPENUMIDLIST *ppEnumIDList) override
STDMETHOD() MapColumnToSCID(UINT column, SHCOLUMNID *pscid) override
STDMETHOD() CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1, PCUIDLIST_RELATIVE pidl2) override
const char * shdebugstr_guid(const struct _GUID *id)
#define IDI_SHELL_NETWORK_FOLDER
#define IDS_SHV_COLUMN_NAME
#define DFM_MERGECONTEXTMENU
#define DFM_INVOKECOMMAND
#define FAILED_UNEXPECTEDLY(hr)
#define SHELL_ExecuteControlPanelCPL(hwnd, cpl)
HRESULT SHELL32_DefaultContextMenuCallBack(IShellFolder *psf, IDataObject *pdo, UINT msg)
void WINAPI SHFree(LPVOID pv)
LPVOID WINAPI SHAlloc(SIZE_T len)
WCHAR swShell32Name[MAX_PATH]
VOID WINAPI CoTaskMemFree(LPVOID ptr)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define COM_INTERFACE_ENTRY_IID(iid, x)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define FILE_ATTRIBUTE_DIRECTORY
interface IBindCtx * LPBC
const GUID IID_IDataObject
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
#define IsEqualIID(riid1, riid2)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
HRESULT SHELL32_BindToSF(LPCITEMIDLIST pidlRoot, PERSIST_FOLDER_TARGET_INFO *ppfti, LPCITEMIDLIST pidl, const GUID *clsid, REFIID riid, LPVOID *ppvOut)
LSTATUS AddClassKeyToArray(const WCHAR *szClass, HKEY *array, UINT *cKeys)
void WINAPI _InsertMenuItemW(HMENU hmenu, UINT indexMenu, BOOL fByPosition, UINT wID, UINT fType, LPCWSTR dwTypeData, UINT fState)
struct _SFV_CREATE SFV_CREATE
#define IDS_SHV_COLUMN_CATEGORY
#define IDS_SHV_COLUMN_NETLOCATION
#define IDS_SHV_COLUMN_WORKGROUP
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
const ITEMID_CHILD UNALIGNED * PCUITEMID_CHILD
const ITEMIDLIST_RELATIVE UNALIGNED * PCUIDLIST_RELATIVE
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
#define GetFileAttributes
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define RESOURCETYPE_DISK
NETRESOURCEA * LPNETRESOURCE
#define RESOURCEUSAGE_CONTAINER
#define WN_NO_MORE_ENTRIES
#define RESOURCE_GLOBALNET
HMENU WINAPI CreatePopupMenu(void)
BOOL WINAPI DestroyMenu(_In_ HMENU)
#define MAKEINTRESOURCEW(i)
DWORD WINAPI WNetCloseEnum(HANDLE hEnum)
#define IID_PPV_ARG(Itype, ppType)