mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
004e08383a
*.DeskLink file realizes SendTo Desktop (Create shortcut) in Windows. DeskLink is implemented in the sendmail.dll module. CORE-12562
53 lines
1.7 KiB
C++
53 lines
1.7 KiB
C++
/*
|
|
* PROJECT: sendmail
|
|
* LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+)
|
|
* PURPOSE: DeskLink implementation
|
|
* COPYRIGHT: Copyright 2019 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
|
|
*/
|
|
|
|
#ifndef _CDESKLINKDROPHANDLER_HPP_
|
|
#define _CDESKLINKDROPHANDLER_HPP_
|
|
|
|
#include "resource.h"
|
|
|
|
class CDeskLinkDropHandler :
|
|
public CComCoClass<CDeskLinkDropHandler, &CLSID_DeskLinkDropHandler>,
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
public IDropTarget,
|
|
public IPersistFile
|
|
{
|
|
public:
|
|
CDeskLinkDropHandler();
|
|
~CDeskLinkDropHandler();
|
|
|
|
// IDropTarget
|
|
STDMETHODIMP DragEnter(IDataObject *pDataObject, DWORD dwKeyState,
|
|
POINTL pt, DWORD *pdwEffect);
|
|
STDMETHODIMP DragOver(DWORD dwKeyState, POINTL pt, DWORD *pdwEffect);
|
|
STDMETHODIMP DragLeave();
|
|
STDMETHODIMP Drop(IDataObject *pDataObject, DWORD dwKeyState, POINTL pt,
|
|
DWORD *pdwEffect);
|
|
|
|
// IPersist
|
|
STDMETHODIMP GetClassID(CLSID *lpClassId);
|
|
|
|
// IPersistFile
|
|
STDMETHODIMP GetCurFile(LPOLESTR *ppszFileName);
|
|
STDMETHODIMP IsDirty();
|
|
STDMETHODIMP Load(LPCOLESTR pszFileName, DWORD dwMode);
|
|
STDMETHODIMP Save(LPCOLESTR pszFileName, BOOL fRemember);
|
|
STDMETHODIMP SaveCompleted(LPCOLESTR pszFileName);
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_DESKLINK)
|
|
DECLARE_NOT_AGGREGATABLE(CDeskLinkDropHandler)
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CDeskLinkDropHandler)
|
|
COM_INTERFACE_ENTRY_IID(IID_IPersist, IPersist)
|
|
COM_INTERFACE_ENTRY_IID(IID_IPersistFile, IPersistFile)
|
|
COM_INTERFACE_ENTRY_IID(IID_IDropTarget, IDropTarget)
|
|
END_COM_MAP()
|
|
};
|
|
|
|
#endif /* _CDESKLINKDROPHANDLER_HPP_ */
|