2000-02-20 19:37:48 +01:00
|
|
|
/*
|
|
|
|
* defines helperfunctions to manipulate the contents of a IShellFolder
|
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* Copyright 2000 Juergen Schmied
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2000-02-20 19:37:48 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_SHELLFOLDER_HELP_H
|
|
|
|
#define __WINE_SHELLFOLDER_HELP_H
|
|
|
|
|
|
|
|
#include "winbase.h"
|
|
|
|
|
2002-12-05 21:33:07 +01:00
|
|
|
#include "shlobj.h"
|
2000-02-20 19:37:48 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
|
|
|
DEFINE_GUID(IID_ISFHelper, 0x1fe68efbL, 0x1874, 0x9812, 0x56, 0xdc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
|
|
|
|
typedef struct ISFHelper ISFHelper, *LPISFHELPER;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ISFHelper interface
|
|
|
|
*/
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE ISFHelper
|
2000-02-20 19:37:48 +01:00
|
|
|
#define ISFHelper_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(GetUniqueName)(THIS_ LPSTR lpName, UINT uLen) PURE; \
|
|
|
|
STDMETHOD(AddFolder)(THIS_ HWND hwnd, LPCSTR lpName, LPITEMIDLIST * ppidlOut) PURE; \
|
|
|
|
STDMETHOD(DeleteItems)(THIS_ UINT cidl, LPCITEMIDLIST * apidl) PURE; \
|
|
|
|
STDMETHOD(CopyItems)(THIS_ IShellFolder * pSFFrom, UINT cidl, LPCITEMIDLIST * apidl) PURE;
|
2000-02-20 19:37:48 +01:00
|
|
|
ICOM_DEFINE(ISFHelper, IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
2000-02-20 19:37:48 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2000-02-20 19:37:48 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define ISFHelper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define ISFHelper_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define ISFHelper_Release(p) (p)->lpVtbl->Release(p)
|
2000-02-20 19:37:48 +01:00
|
|
|
/*** ISFHelper methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define ISFHelper_GetUniqueName(p,a,b) (p)->lpVtbl->GetUniqueName(p,a,b)
|
|
|
|
#define ISFHelper_AddFolder(p,a,b,c) (p)->lpVtbl->AddFolder(p,a,b,c)
|
|
|
|
#define ISFHelper_DeleteItems(p,a,b) (p)->lpVtbl->DeleteItems(p,a,b)
|
|
|
|
#define ISFHelper_CopyItems(p,a,b,c) (p)->lpVtbl->CopyItems(p,a,b,c)
|
|
|
|
#endif
|
2000-02-20 19:37:48 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_SHELLFOLDER_HELP_H */
|