msi: Refactor the Installer.RegistryValue method into InstallerImpl_RegistryValue.
[wine] / dlls / shell32 / shellfolder.h
1 /*
2  * Defines helper functions to manipulate the contents of an IShellFolder
3  *
4  * Copyright 2000 Juergen Schmied
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef __WINE_SHELLFOLDER_HELP_H
22 #define __WINE_SHELLFOLDER_HELP_H
23
24 #include <stdarg.h>
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "winuser.h"
29
30 #include "shlobj.h"
31
32 /*****************************************************************************
33  * Predeclare the interfaces
34  */
35 DEFINE_GUID(IID_ISFHelper, 0x1fe68efbL, 0x1874, 0x9812, 0x56, 0xdc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
36
37 /*****************************************************************************
38  * ISFHelper interface
39  */
40
41 #define INTERFACE ISFHelper
42 DECLARE_INTERFACE_(ISFHelper,IUnknown)
43 {
44     /*** IUnknown methods ***/
45     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
46     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
47     STDMETHOD_(ULONG,Release)(THIS) PURE;
48     /*** ISFHelper methods ***/
49     STDMETHOD(GetUniqueName)(THIS_ LPWSTR  lpName, UINT  uLen) PURE;
50     STDMETHOD(AddFolder)(THIS_ HWND  hwnd, LPCWSTR  lpName, LPITEMIDLIST * ppidlOut) PURE;
51     STDMETHOD(DeleteItems)(THIS_ UINT  cidl, LPCITEMIDLIST * apidl) PURE;
52     STDMETHOD(CopyItems)(THIS_ IShellFolder * pSFFrom, UINT  cidl, LPCITEMIDLIST * apidl) PURE;
53 };
54 #undef INTERFACE
55
56 #ifdef COBJMACROS
57 /*** IUnknown methods ***/
58 #define ISFHelper_QueryInterface(p,a,b)         (p)->lpVtbl->QueryInterface(p,a,b)
59 #define ISFHelper_AddRef(p)                     (p)->lpVtbl->AddRef(p)
60 #define ISFHelper_Release(p)                    (p)->lpVtbl->Release(p)
61 /*** ISFHelper methods ***/
62 #define ISFHelper_GetUniqueName(p,a,b)          (p)->lpVtbl->GetUniqueName(p,a,b)
63 #define ISFHelper_AddFolder(p,a,b,c)            (p)->lpVtbl->AddFolder(p,a,b,c)
64 #define ISFHelper_DeleteItems(p,a,b)            (p)->lpVtbl->DeleteItems(p,a,b)
65 #define ISFHelper_CopyItems(p,a,b,c)            (p)->lpVtbl->CopyItems(p,a,b,c)
66 #endif
67
68 #endif /* __WINE_SHELLFOLDER_HELP_H */