static HRESULT WINAPI RecycleBin_IPersistFolder2_QueryInterface(IPersistFolder2 *iface, REFIID riid, void **ppvObject) { RecycleBin *This = impl_from_IPersistFolder2(iface); return RecycleBin_QueryInterface(&This->IShellFolder2_iface, riid, ppvObject); }
static HRESULT WINAPI RecycleBin_GetCurFolder(IPersistFolder2 *iface, LPITEMIDLIST *ppidl) { RecycleBin *This = impl_from_IPersistFolder2(iface); TRACE("\n"); *ppidl = ILClone(This->pidl); return S_OK; }
static HRESULT WINAPI ISF_Desktop_IPersistFolder2_fnInitialize( IPersistFolder2 *iface, LPCITEMIDLIST pidl) { IDesktopFolderImpl *This = impl_from_IPersistFolder2( iface ); FIXME ("(%p)->(%p) stub\n", This, pidl); return E_NOTIMPL; }
static HRESULT WINAPI ISF_Desktop_IPersistFolder2_fnGetCurFolder( IPersistFolder2 *iface, LPITEMIDLIST *ppidl) { IDesktopFolderImpl *This = impl_from_IPersistFolder2( iface ); *ppidl = ILClone(This->pidlRoot); return S_OK; }
/************************************************************************ * ISFPersistFolder_Release */ static ULONG WINAPI INPFldr_PersistFolder2_Release (IPersistFolder2 * iface) { IGenericSFImpl *This = impl_from_IPersistFolder2(iface); TRACE ("(%p)->(count=%u)\n", This, This->ref); return IShellFolder2_Release (&This->IShellFolder2_iface); }
/************************************************************************ * ICPanel_PersistFolder2_AddRef */ static ULONG WINAPI ICPanel_PersistFolder2_AddRef(IPersistFolder2 * iface) { ICPanelImpl *This = impl_from_IPersistFolder2(iface); TRACE("(%p)->(count=%u)\n", This, This->ref); return IShellFolder2_AddRef(&This->IShellFolder2_iface); }
/************************************************************************ * ISFPersistFolder_Release */ static ULONG WINAPI ICPanel_PersistFolder2_Release(IPersistFolder2 * iface) { ICPanelImpl *This = impl_from_IPersistFolder2(iface); TRACE("(%p)->(count=%lu)\n", This, This->ref); return IUnknown_Release(_IUnknown_(This)); }
/************************************************************************ * ICPanel_PersistFolder2_QueryInterface */ static HRESULT WINAPI ICPanel_PersistFolder2_QueryInterface(IPersistFolder2 * iface, REFIID iid, LPVOID * ppvObject) { ICPanelImpl *This = impl_from_IPersistFolder2(iface); TRACE("(%p)\n", This); return IUnknown_QueryInterface(_IUnknown_(This), iid, ppvObject); }
/************************************************************************ * INPFldr_PersistFolder2_Initialize * * NOTES: it makes no sense to change the pidl */ static HRESULT WINAPI INPFldr_PersistFolder2_Initialize ( IPersistFolder2 * iface, LPCITEMIDLIST pidl) { IGenericSFImpl *This = impl_from_IPersistFolder2(iface); TRACE ("(%p)->(%p)\n", This, pidl); return E_NOTIMPL; }
static ULONG WINAPI ISF_Desktop_PersistFolder2_fnRelease (IPersistFolder2 * iface) { IGenericSFImpl *This = impl_from_IPersistFolder2(iface); TRACE ("(%p)->(count=%u)\n", This, This->ref); return ISF_Desktop_fnRelease ((IShellFolder2*)This); }
/************************************************************************ * INPFldr_PersistFolder2_QueryInterface */ static HRESULT WINAPI INPFldr_PersistFolder2_QueryInterface (IPersistFolder2 * iface, REFIID iid, LPVOID * ppvObj) { IGenericSFImpl *This = impl_from_IPersistFolder2(iface); TRACE ("(%p)\n", This); return IShellFolder2_QueryInterface (&This->IShellFolder2_iface, iid, ppvObj); }
static HRESULT WINAPI RecycleBin_Initialize(IPersistFolder2 *iface, LPCITEMIDLIST pidl) { RecycleBin *This = impl_from_IPersistFolder2(iface); TRACE("(%p, %p)\n", This, pidl); This->pidl = ILClone(pidl); if (This->pidl == NULL) return E_OUTOFMEMORY; return S_OK; }
static HRESULT WINAPI ISF_Desktop_PersistFolder2_fnQueryInterface (IPersistFolder2 * iface, REFIID iid, LPVOID * ppvObj) { IGenericSFImpl *This = impl_from_IPersistFolder2(iface); TRACE ("(%p)\n", This); return ISF_Desktop_fnQueryInterface ((IShellFolder2*)This, iid, ppvObj); }
/************************************************************************** * IPersistFolder2_fnGetCurFolder */ static HRESULT WINAPI ICPanel_PersistFolder2_GetCurFolder(IPersistFolder2 * iface, LPITEMIDLIST * pidl) { ICPanelImpl *This = impl_from_IPersistFolder2(iface); TRACE("(%p)->(%p)\n", This, pidl); if (!pidl) return E_POINTER; *pidl = ILClone(This->pidlRoot); return S_OK; }
/************************************************************************ * ICPanel_PersistFolder2_GetClassID */ static HRESULT WINAPI ICPanel_PersistFolder2_GetClassID(IPersistFolder2 * iface, CLSID * lpClassId) { ICPanelImpl *This = impl_from_IPersistFolder2(iface); TRACE("(%p)\n", This); if (!lpClassId) return E_POINTER; *lpClassId = CLSID_ControlPanel; return S_OK; }
/************************************************************************ * INPFldr_PersistFolder2_GetClassID */ static HRESULT WINAPI INPFldr_PersistFolder2_GetClassID ( IPersistFolder2 * iface, CLSID * lpClassId) { IGenericSFImpl *This = impl_from_IPersistFolder2(iface); TRACE ("(%p)\n", This); if (!lpClassId) return E_POINTER; *lpClassId = CLSID_NetworkPlaces; return S_OK; }
static HRESULT WINAPI ISF_Desktop_PersistFolder2_fnGetClassID (IPersistFolder2 * iface, CLSID * lpClassId) { static GUID const CLSID_Desktop = { 0x00021400, 0x0000, 0x0000, {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46} }; IGenericSFImpl *This = impl_from_IPersistFolder2(iface); TRACE ("(%p)\n", This); if (!lpClassId) return E_POINTER; memcpy(lpClassId, &CLSID_Desktop, sizeof(GUID)); return S_OK; }
static ULONG WINAPI ISF_Desktop_IPersistFolder2_fnRelease( IPersistFolder2 *iface) { IDesktopFolderImpl *This = impl_from_IPersistFolder2( iface ); return IShellFolder2_Release(&This->IShellFolder2_iface); }
/************************************************************************** * IPersist */ static HRESULT WINAPI ISF_Desktop_IPersistFolder2_fnQueryInterface( IPersistFolder2 *iface, REFIID riid, LPVOID *ppvObj) { IDesktopFolderImpl *This = impl_from_IPersistFolder2( iface ); return IShellFolder2_QueryInterface(&This->IShellFolder2_iface, riid, ppvObj); }
static ULONG WINAPI RecycleBin_IPersistFolder2_Release(IPersistFolder2 *iface) { RecycleBin *This = impl_from_IPersistFolder2(iface); return RecycleBin_Release(&This->IShellFolder2_iface); }