summaryrefslogtreecommitdiff
path: root/include/m_utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-22 14:20:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-22 14:20:52 +0300
commit93b3a77b2590443e2b1e868b96196175f99180b9 (patch)
tree70601e77b9f6f7256721967eed0be10b598ad2e4 /include/m_utils.h
parentbb0498bf6aa0accd22bbc19091a12d54602a52be (diff)
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
Diffstat (limited to 'include/m_utils.h')
-rw-r--r--include/m_utils.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -51,6 +51,15 @@ EXTERN_C MIR_CORE_DLL(void) Utils_OpenUrl(const char *pszUrl, bool bOpenInNewWin
EXTERN_C MIR_CORE_DLL(void) Utils_OpenUrlW(const wchar_t *pszUrl, bool bOpenInNewWindow = true);
/////////////////////////////////////////////////////////////////////////////////////////
+// Converts a dropped file into a file transfer
+//
+// #include <shellapi.h> 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
// Does not support dialogtemplateex dialog boxes, and will return failure if you try to resize one