ReactOS 0.4.16-dev-329-g9223134
CexeDropHandler.h
Go to the documentation of this file.
1/*
2 * executable drop target handler
3 *
4 * Copyright 2014 Huw Campbell
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 _CEXEDROPHANDLER_H_
22#define _CEXEDROPHANDLER_H_
23
25 public CComCoClass<CExeDropHandler, &CLSID_ExeDropHandler>,
26 public CComObjectRootEx<CComMultiThreadModelNoCS>,
27 public IDropTarget,
28 public IPersistFile
29{
30private:
33public:
36
37 // IDropTarget
38 STDMETHOD(DragEnter)(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect) override;
39 STDMETHOD(DragOver)(DWORD dwKeyState, POINTL pt, DWORD *pdwEffect) override;
40 STDMETHOD(DragLeave)() override;
41 STDMETHOD(Drop)(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect) override;
42
43 // IPersist
44 STDMETHOD(GetClassID)(CLSID *lpClassId) override;
45
47 STDMETHOD(GetCurFile)(LPOLESTR *ppszFileName) override;
48 STDMETHOD(IsDirty)() override;
49 STDMETHOD(Load)(LPCOLESTR pszFileName, DWORD dwMode) override;
50 STDMETHOD(Save)(LPCOLESTR pszFileName, BOOL fRemember) override;
51 STDMETHOD(SaveCompleted)(LPCOLESTR pszFileName) override;
52
55
57
61 COM_INTERFACE_ENTRY_IID(IID_IDropTarget, IDropTarget)
63};
64
65#endif /* _CEXEDROPHANDLER_H_ */
#define STDMETHOD(m)
Definition: basetyps.h:62
STDMETHOD() GetCurFile(LPOLESTR *ppszFileName) override
STDMETHOD() Drop(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect) override
STDMETHOD() SaveCompleted(LPCOLESTR pszFileName) override
STDMETHOD() GetClassID(CLSID *lpClassId) override
STDMETHOD() DragLeave() override
STDMETHOD() Save(LPCOLESTR pszFileName, BOOL fRemember) override
STDMETHOD() Load(LPCOLESTR pszFileName, DWORD dwMode) override
STDMETHOD() IsDirty() override
STDMETHOD() DragEnter(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect) override
STDMETHOD() DragOver(DWORD dwKeyState, POINTL pt, DWORD *pdwEffect) override
#define pt(x, y)
Definition: drawing.c:79
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:679
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:645
#define END_COM_MAP()
Definition: atlcom.h:592
static LPOLESTR
Definition: stg_prop.c:27
const GUID IID_IPersistFile
const GUID IID_IPersist
Definition: proxy.cpp:14
#define IDR_EXEDROPHANDLER
Definition: shresdef.h:906
WORD WORD PSZ PSZ pszFileName
Definition: vdmdbg.h:44
WCHAR * LPWSTR
Definition: xmlstorage.h:184