38 public CComObjectRootEx<CComMultiThreadModelNoCS>,
120 TRACE(
"SetSources %p %p\n", userLocal, allUSers);
134 TRACE(
"Search conditions changed, recreating list...\n");
136 CComPtr<IEnumIDList> userLocal;
137 CComPtr<IEnumIDList> allUsers;
156 TRACE(
"Loading Local entries...\n");
159 hr = userLocal->Next(1, &pidl,
NULL);
191 TRACE(
"Loading Common entries...\n");
194 hr = allUsers->Next(1, &pidl,
NULL);
231 TRACE(
"Item name already exists! Marking '%S' as shared ...\n",
name);
263 Begin(hwndOwner, SHCONTF_FOLDERS | SHCONTF_NONFOLDERS);
266 TRACE(
"Searching for pidl { cb=%d } in a list of %d items\n", pcidl->mkid.cb,
m_hDsaCount);
274 TRACE(
"Comparing with item at %d with parent %p and pidl { cb=%d }\n",
i, pInfo->
parent, pInfo->
pidl->mkid.cb);
287 TRACE(
"Comparison returned %d\n", (
int) (
short) (
hr & 0xFFFF));
291 TRACE(
"Pidl not found\n");
299 Begin(hwndOwner, SHCONTF_FOLDERS | SHCONTF_NONFOLDERS);
302 TRACE(
"Searching for '%S' in a list of %d items\n", strParsingName,
m_hDsaCount);
312 strParsingName,
lstrlenW(strParsingName));
323 TRACE(
"Pidl not found\n");
338 for (
int i = 0;
i < (
int)celt;)
346 TRACE(
"Returning next item at %d with parent %p and pidl { cb=%d }\n",
m_hDsaIndex,
info.parent,
info.pidl->mkid.cb);
361 if (pceltFetched) *pceltFetched = celt;
390 m_UserLocalPidl(
NULL),
391 m_AllUsersPidl(
NULL),
407 TRACE(
"FIXME: No idea how to handle the GUID\n");
463 ULONG *pdwAttributes)
477 TRACE(
"ParseDisplayName name=%S\n", lpszDisplayName);
491 *pdwAttributes =
info.parent->GetAttributesOf(1, (
LPCITEMIDLIST*)ppidl, pdwAttributes);
501 TRACE(
"EnumObjects\n");
521 TRACE(
"BindToObject shared = %d\n",
info.shared);
524 return info.parent->BindToObject(
info.pidl, pbcReserved,
riid, ppvOut);
526 if (
riid != IID_IShellFolder)
530 CComPtr<IShellFolder> fld1;
531 CComPtr<IShellFolder> fld2;
542 CComPtr<IAugmentedShellFolder> pasf;
551 hr = pasf->AddNameSpace(
NULL, fld1,
info.pidl, 0xFF00);
555 hr = pasf->AddNameSpace(
NULL, fld2,
info.pidl2, 0x0000);
577 TRACE(
"CompareIDs\n");
598 TRACE(
"GetAttributesOf\n");
600 for (
int i = 0;
i < (
int)cidl;
i++)
612 hr =
info.parent->GetAttributesOf(1, &pidl, pinOut1);
632 TRACE(
"GetUIObjectOf\n");
634 for (
int i = 0;
i < (
int)cidl;
i++)
638 TRACE(
"Processing GetUIObjectOf item %d of %u...\n",
i, cidl);
646 TRACE(
"FindPidlInList succeeded with parent %p and pidl { db=%d }\n",
info.parent,
info.pidl->mkid.cb);
648 UINT * pinOut1 = prgfInOut ? prgfInOut+
i :
NULL;
649 void** ppvOut1 = ppvOut ? ppvOut +
i :
NULL;
651 hr =
info.parent->GetUIObjectOf(hwndOwner, 1, &pidl,
riid, pinOut1, ppvOut1);
668 TRACE(
"GetDisplayNameOf\n");
754 TRACE(
"GetDetailsEx\n");
760 CComPtr<IShellFolder2> parent2;
765 hr = parent2->GetDetailsEx(
info.pidl, pscid, pv);
779 TRACE(
"GetDetailsOf\n");
785 CComPtr<IShellFolder2> parent2;
790 hr = parent2->GetDetailsOf(
info.pidl, iColumn, psd);
815 return ShellObjectCreator<CMergedFolder>(
riid,
ppv);
HRESULT WINAPI RSHELL_CMergedFolder_CreateInstance(REFIID riid, LPVOID *ppv)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN Begin
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
STDMETHOD() Reset() override
CComPtr< IShellFolder > m_AllUSersFolder
STDMETHOD() Clone(IEnumIDList **ppenum) override
HRESULT FindByName(HWND hwndOwner, LPCWSTR strParsingName, LocalPidlInfo *pinfo)
static int CALLBACK s_DsaDeleteCallback(void *pItem, void *pData)
HRESULT Begin(HWND hwndOwner, SHCONTF flags)
HRESULT SetSources(IShellFolder *userLocal, IShellFolder *allUSers)
CComPtr< IShellFolder > m_UserLocalFolder
virtual ~CEnumMergedFolder()
STDMETHOD() Skip(ULONG celt) override
int DsaDeleteCallback(LocalPidlInfo *info)
STDMETHOD() Next(ULONG celt, LPITEMIDLIST *rgelt, ULONG *pceltFetched) override
HRESULT FindPidlInList(HWND hwndOwner, LPCITEMIDLIST pcidl, LocalPidlInfo *pinfo)
STDMETHOD() ParseDisplayName(HWND hwndOwner, LPBC pbcReserved, LPOLESTR lpszDisplayName, ULONG *pchEaten, LPITEMIDLIST *ppidl, ULONG *pdwAttributes) override
STDMETHOD() CreateViewObject(HWND hwndOwner, REFIID riid, void **ppvOut) override
STDMETHOD() GetAttributesOf(UINT cidl, PCUITEMID_CHILD_ARRAY apidl, SFGAOF *rgfInOut) override
STDMETHOD() CompareIDs(LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) override
CComPtr< IShellFolder > m_UserLocal
STDMETHOD() AddNameSpace(LPGUID lpGuid, IShellFolder *psf, LPCITEMIDLIST pcidl, ULONG dwUnknown) override
STDMETHOD() GetDefaultColumnState(UINT iColumn, SHCOLSTATEF *pcsFlags) override
STDMETHOD() GetDefaultColumn(DWORD dwReserved, ULONG *pSort, ULONG *pDisplay) override
STDMETHOD() GetDisplayNameOf(LPCITEMIDLIST pidl, SHGDNF uFlags, STRRET *lpName) override
STDMETHOD() GetNameSpaceID(LPCITEMIDLIST pcidl, LPGUID lpGuid) override
STDMETHOD() GetDefaultSearchGUID(GUID *lpguid) override
STDMETHOD() QueryNameSpace(ULONG dwUnknown, LPGUID lpGuid, IShellFolder **ppsf) override
STDMETHOD() GetDetailsEx(LPCITEMIDLIST pidl, const SHCOLUMNID *pscid, VARIANT *pv) override
STDMETHOD() GetDetailsOf(LPCITEMIDLIST pidl, UINT iColumn, SHELLDETAILS *psd) override
STDMETHOD() MapColumnToSCID(UINT iColumn, SHCOLUMNID *pscid) override
STDMETHOD() EnumSearches(IEnumExtraSearch **ppenum) override
STDMETHOD() EnumObjects(HWND hwndOwner, SHCONTF grfFlags, IEnumIDList **ppenumIDList) override
CComPtr< IShellFolder > m_AllUsers
LPITEMIDLIST m_AllUsersPidl
STDMETHOD() QueryNameSpace2(ULONG, QUERYNAMESPACEINFO *) override
STDMETHOD() SetNameOf(HWND hwnd, LPCITEMIDLIST pidl, LPCOLESTR lpszName, SHGDNF uFlags, LPITEMIDLIST *ppidlOut) override
STDMETHOD() GetUIObjectOf(HWND hwndOwner, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, REFIID riid, UINT *prgfInOut, void **ppvOut) override
STDMETHOD() BindToObject(LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, void **ppvOut) override
STDMETHOD() Initialize(PCIDLIST_ABSOLUTE pidl) override
STDMETHOD() UnWrapIDList(LPCITEMIDLIST pcidl, LONG lUnknown, IShellFolder **ppsf, LPITEMIDLIST *ppidl1, LPITEMIDLIST *ppidl2, LONG *lpUnknown) override
CComPtr< CEnumMergedFolder > m_EnumSource
LPITEMIDLIST m_UserLocalPidl
STDMETHOD() BindToStorage(LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, void **ppvObj) override
STDMETHOD() GetClassID(CLSID *lpClassId) override
STDMETHOD() EnumNameSpace(ULONG dwUnknown, PULONG lpUnknown) override
STDMETHOD() GetCurFolder(PIDLIST_ABSOLUTE *pidl) override
#define FAILED_UNEXPECTEDLY(hr)
LCID WINAPI GetThreadLocale(void)
INT WINAPI CompareStringW(LCID lcid, DWORD flags, LPCWSTR str1, INT len1, LPCWSTR str2, INT len2)
HRESULT WINAPI StrRetToStrW(LPSTRRET lpStrRet, const ITEMIDLIST *pidl, LPWSTR *ppszName)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
LPVOID WINAPI DSA_GetItemPtr(HDSA hdsa, INT nIndex)
VOID WINAPI DSA_EnumCallback(HDSA hdsa, PFNDSAENUMCALLBACK enumProc, LPVOID lParam)
BOOL WINAPI DSA_DeleteAllItems(HDSA hdsa)
void WINAPI DSA_DestroyCallback(HDSA hdsa, PFNDSAENUMCALLBACK enumProc, LPVOID lParam)
INT WINAPI DSA_InsertItem(HDSA hdsa, INT nIndex, LPVOID pSrc)
HDSA WINAPI DSA_Create(INT nSize, INT nGrow)
GLuint GLdouble GLdouble GLint GLint order
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
VOID WINAPI CoTaskMemFree(LPVOID ptr)
HRESULT CompareIDs([in] LPARAM lParam, [in] PCUIDLIST_RELATIVE pidl1, [in] PCUIDLIST_RELATIVE pidl2)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define COM_INTERFACE_ENTRY_IID(iid, x)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
#define DECLARE_NOT_AGGREGATABLE(x)
#define ERROR_FILE_NOT_FOUND
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
interface IBindCtx * LPBC
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
void WINAPI ILFree(LPITEMIDLIST pidl)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
#define HRESULT_FROM_WIN32(x)
#define IID_PPV_ARG(Itype, ppType)