2 * Defines the COM interfaces related to SHELL DragDropHelper
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_WINE_OBJ_DRAGDROPHELPER_H
20 #define __WINE_WINE_OBJ_DRAGDROPHELPER_H
24 #endif /* defined(__cplusplus) */
26 /*****************************************************************************
27 * Predeclare the interfaces
29 DEFINE_GUID(CLSID_DragDropHelper, 0x4657278a, 0x411b, 0x11d2, 0x83, 0x9a, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0);
31 DEFINE_GUID(IID_IDropTargetHelper, 0x4657278b, 0x411b, 0x11d2, 0x83, 0x9a, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0);
32 typedef struct IDropTargetHelper IDropTargetHelper,*LPDROPTARGETHELPER;
34 DEFINE_GUID(IID_IDragSourceHelper, 0xde5bf786, 0x477a, 0x11d2, 0x83, 0x9d, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0);
35 typedef struct IDragSourceHelper IDragSourceHelper,*LPDRAGSOURCEHELPER;
37 /*****************************************************************************
38 * IDragSourceHelper interface
44 HBITMAP hbmpDragImage;
46 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
49 #define ICOM_INTERFACE IDragSourceHelper
50 #define IDragSourceHelper_METHODS \
51 ICOM_METHOD2(HRESULT, InitializeFromBitmap, LPSHDRAGIMAGE, pshdi, IDataObject*, pDataObject) \
52 ICOM_METHOD3(HRESULT, InitializeFromWindow, HWND, hwnd, POINT*, ppt, IDataObject*, pDataObject)
53 #define IDragSourceHelper_IMETHODS \
55 IDragSourceHelper_METHODS
56 ICOM_DEFINE(IDragSourceHelper,IUnknown)
59 /*** IUnknown methods ***/
60 #define IDragSourceHelper_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
61 #define IDragSourceHelper_AddRef(p) ICOM_CALL (AddRef,p)
62 #define IDragSourceHelper_Release(p) ICOM_CALL (Release,p)
63 /*** IDropSource methods ***/
64 #define IDragSourceHelper_InitializeFromBitmap(p,a,b) ICOM_CALL2(InitializeFromBitmap,p,a,b)
65 #define IDragSourceHelper_InitializeFromWindow(p,a,b,c) ICOM_CALL1(InitializeFromWindow,p,a,b,c)
68 /*****************************************************************************
69 * IDropTargetHelper interface
71 #define ICOM_INTERFACE IDropTargetHelper
72 #define IDropTargetHelper_METHODS \
73 ICOM_METHOD4(HRESULT,DragEnter, HWND, hwndTarget, IDataObject*, pDataObject, POINT*, ppt, DWORD, dwEffect) \
74 ICOM_METHOD (HRESULT,DragLeave) \
75 ICOM_METHOD2(HRESULT,DragOver, POINT*, ppt, DWORD, dwEffect) \
76 ICOM_METHOD3(HRESULT,Drop, IDataObject*, pDataObject, POINT*, ppt,DWORD, dwEffect) \
77 ICOM_METHOD1(HRESULT,Show, BOOL, fShow)
78 #define IDropTargetHelper_IMETHODS \
80 IDropTargetHelper_METHODS
81 ICOM_DEFINE(IDropTargetHelper,IUnknown)
84 /*** IUnknown methods ***/
85 #define IDropTargetHelper_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
86 #define IDropTargetHelper_AddRef(p) ICOM_CALL (AddRef,p)
87 #define IDropTargetHelper_Release(p) ICOM_CALL (Release,p)
88 /*** IDropTargetHelper methods ***/
89 #define IDropTargetHelper_DragEnter(p,a,b,c,d) ICOM_CALL4(DragEnter,p,a,b,c,d)
90 #define IDropTargetHelper_DragLeave(p) ICOM_CALL (DragLeave,p)
91 #define IDropTargetHelper_DragOver(p,a,b) ICOM_CALL2(DragOver,p,a,b)
92 #define IDropTargetHelper_Drop(p,a,b,c) ICOM_CALL3(Drop,p,a,b,c)
93 #define IDropTargetHelper_Show(p,a) ICOM_CALL4(Show,p,a,b,c,d)
98 #endif /* defined(__cplusplus) */
100 #endif /* __WINE_WINE_OBJ_DRAGDROPHELPER_H */