ReactOS 0.4.15-dev-7131-ge4d03f4
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 virtual HRESULT WINAPI DragEnter(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect);
39 virtual HRESULT WINAPI DragOver(DWORD dwKeyState, POINTL pt, DWORD *pdwEffect);
40 virtual HRESULT WINAPI DragLeave();
41 virtual HRESULT WINAPI Drop(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect);
42
43 // IPersist
44 virtual HRESULT WINAPI GetClassID(CLSID *lpClassId);
45
47 virtual HRESULT WINAPI GetCurFile(LPOLESTR *ppszFileName);
48 virtual HRESULT WINAPI IsDirty();
49 virtual HRESULT WINAPI Load(LPCOLESTR pszFileName, DWORD dwMode);
50 virtual HRESULT WINAPI Save(LPCOLESTR pszFileName, BOOL fRemember);
51 virtual HRESULT WINAPI SaveCompleted(LPCOLESTR pszFileName);
52
53
56
58
62 COM_INTERFACE_ENTRY_IID(IID_IDropTarget, IDropTarget)
64};
65
66#endif /* _CEXEDROPHANDLER_H_ */
virtual HRESULT WINAPI DragLeave()
virtual HRESULT WINAPI IsDirty()
virtual HRESULT WINAPI Drop(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect)
virtual HRESULT WINAPI Save(LPCOLESTR pszFileName, BOOL fRemember)
virtual HRESULT WINAPI DragEnter(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt, DWORD *pdwEffect)
virtual HRESULT WINAPI GetClassID(CLSID *lpClassId)
virtual HRESULT WINAPI DragOver(DWORD dwKeyState, POINTL pt, DWORD *pdwEffect)
virtual HRESULT WINAPI Load(LPCOLESTR pszFileName, DWORD dwMode)
virtual HRESULT WINAPI SaveCompleted(LPCOLESTR pszFileName)
virtual HRESULT WINAPI GetCurFile(LPOLESTR *ppszFileName)
#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:886
WORD WORD PSZ PSZ pszFileName
Definition: vdmdbg.h:44
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184