summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-07-29 14:23:02 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-07-29 14:23:02 +0300
commitedbfd659e4990494670e535d5be282659cd5bfc8 (patch)
tree47dabe0dd71e2fa07b8476273e58ead785317f36 /include
parenta63fdd451d23aa5d4b33c1bcf3540bea411f3358 (diff)
fixes #3602 ("Copy path" в контекстном меню для файлов)
Diffstat (limited to 'include')
-rw-r--r--include/m_protosvc.h4
-rw-r--r--include/m_srmm_int.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/include/m_protosvc.h b/include/m_protosvc.h
index ec77c0fad0..601ddebb40 100644
--- a/include/m_protosvc.h
+++ b/include/m_protosvc.h
@@ -804,6 +804,10 @@ __forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILE *pre)
#define PS_OFFLINEFILE "/OfflineFile"
+#define OFD_DOWNLOAD 0x0001
+#define OFD_SAVEAS 0x0002
+#define OFD_RUN 0x1000
+
struct MIR_APP_EXPORT OFDTHREAD : public MNonCopyable
{
OFDTHREAD(MEVENT, const CMStringW &, bool);
diff --git a/include/m_srmm_int.h b/include/m_srmm_int.h
index 12c2b1cd8a..d061fcd230 100644
--- a/include/m_srmm_int.h
+++ b/include/m_srmm_int.h
@@ -357,8 +357,9 @@ MIR_APP_DLL(void) Srmm_CreateHotkey(const char *pszSection, const char *pszDescr
/////////////////////////////////////////////////////////////////////////////////////////
// downloads or launches offline file
+// iCommand = combination of OFD_* constants
-MIR_APP_DLL(void) Srmm_DownloadOfflineFile(MCONTACT hContact, MEVENT hDbEvent, bool bOpen);
+MIR_APP_DLL(void) Srmm_DownloadOfflineFile(MCONTACT hContact, MEVENT hDbEvent, int iCommand);
/////////////////////////////////////////////////////////////////////////////////////////
// finds a SRMM window using hContact