| 1 | /* $Id: shellfolder.h,v 1.2 2000-08-30 13:50:58 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * defines helperfunctions to manipulate the contents of a IShellFolder
|
|---|
| 4 | *
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #ifndef __WINE_SHELLFOLDER_HELP_H
|
|---|
| 8 | #define __WINE_SHELLFOLDER_HELP_H
|
|---|
| 9 |
|
|---|
| 10 | #include "winbase.h"
|
|---|
| 11 | #include "shell.h"
|
|---|
| 12 |
|
|---|
| 13 | #include "wine/obj_base.h"
|
|---|
| 14 | #include "wine/obj_shellfolder.h"
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | /*****************************************************************************
|
|---|
| 18 | * Predeclare the interfaces
|
|---|
| 19 | */
|
|---|
| 20 | DEFINE_GUID(IID_ISFHelper, 0x1fe68efbL, 0x1874, 0x9812, 0x56, 0xdc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
|
|---|
| 21 | typedef struct ISFHelper ISFHelper, *LPISFHELPER;
|
|---|
| 22 |
|
|---|
| 23 | /*****************************************************************************
|
|---|
| 24 | * ISFHelper interface
|
|---|
| 25 | */
|
|---|
| 26 |
|
|---|
| 27 | #define ICOM_INTERFACE ISFHelper
|
|---|
| 28 | #define ISFHelper_METHODS \
|
|---|
| 29 | ICOM_METHOD2 (HRESULT, GetUniqueName, LPSTR, lpName, UINT, uLen) \
|
|---|
| 30 | ICOM_METHOD3 (HRESULT, AddFolder, HWND, hwnd, LPCSTR, lpName, LPITEMIDLIST*, ppidlOut) \
|
|---|
| 31 | ICOM_METHOD2 (HRESULT, DeleteItems, UINT, cidl, LPCITEMIDLIST*, apidl) \
|
|---|
| 32 | ICOM_METHOD3 (HRESULT, CopyItems, IShellFolder*, pSFFrom, UINT, cidl, LPCITEMIDLIST*, apidl)
|
|---|
| 33 | #define ISFHelper_IMETHODS \
|
|---|
| 34 | IUnknown_IMETHODS \
|
|---|
| 35 | ISFHelper_METHODS
|
|---|
| 36 | ICOM_DEFINE(ISFHelper, IUnknown)
|
|---|
| 37 | #undef ICOM_INTERFACE
|
|---|
| 38 |
|
|---|
| 39 | /*** IUnknown methods ***/
|
|---|
| 40 | #define ISFHelper_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|---|
| 41 | #define ISFHelper_AddRef(p) ICOM_CALL (AddRef,p)
|
|---|
| 42 | #define ISFHelper_Release(p) ICOM_CALL (Release,p)
|
|---|
| 43 | /*** ISFHelper methods ***/
|
|---|
| 44 | #define ISFHelper_GetUniqueName(p,a,b) ICOM_CALL2(GetUniqueName,p,a,b)
|
|---|
| 45 | #define ISFHelper_AddFolder(p,a,b,c) ICOM_CALL3(AddFolder,p,a,b,c)
|
|---|
| 46 | #define ISFHelper_DeleteItems(p,a,b) ICOM_CALL2(DeleteItems,p,a,b)
|
|---|
| 47 | #define ISFHelper_CopyItems(p,a,b,c) ICOM_CALL3(CopyItems,p,a,b,c)
|
|---|
| 48 |
|
|---|
| 49 | #endif /* __WINE_SHELLFOLDER_HELP_H */
|
|---|