From 93b3a77b2590443e2b1e868b96196175f99180b9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Mar 2020 14:20:52 +0300 Subject: File transfers: - fixes #2274 (StdMsg & Scriver cannot send files to offline contacts even if their protocol allows that to do); - all copies of AddToFileList in all plugins removed; - ProcessFileDrop() function introduced to handle all file drop operations in all SRMM plugins & contact list --- include/m_utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/m_utils.h') diff --git a/include/m_utils.h b/include/m_utils.h index d4cfd13593..e6aecec3f8 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -50,6 +50,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. EXTERN_C MIR_CORE_DLL(void) Utils_OpenUrl(const char *pszUrl, bool bOpenInNewWindow = true); EXTERN_C MIR_CORE_DLL(void) Utils_OpenUrlW(const wchar_t *pszUrl, bool bOpenInNewWindow = true); +///////////////////////////////////////////////////////////////////////////////////////// +// Converts a dropped file into a file transfer +// +// #include to use this function + +#ifdef _INC_SHELLAPI +MIR_APP_DLL(bool) ProcessFileDrop(HDROP hDrop, MCONTACT hContact); +#endif + ///////////////////////////////////////////////////////////////////////////////////////// // Resizes a dialog by calling a custom routine to move the individual // Returns 0 on success, or nonzero on failure -- cgit v1.2.3