blob: 8e7cb913e278de57025b07e289c63add7a7b051c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{$IFNDEF M_DROPBOX}
{$DEFINE M_DROPBOX}
const
// upload file on Dropbox
// wParam = (MCONTACT)hContact - NULL to send to the Dropbox contact
// lParam = (LPARAM)(const wchar_t*)path - full path to file
// returns file htansfer handle or NULL on failure
// returns immediately, without waiting for the send
// note, that you can track progress by using ME_PROTO_ACK
MS_DROPBOX_SEND_FILE:PAnsiChar = 'Dropbox/Send/File';
// if you want to get download links of sent files
// use ME_DROPBOX_SENT hook. you'll get:
type
TTRANSFERINFO = record
hProcess:THANDLE; // hProcess
status :int; // status of transfer. 0 on success otherwise fail
data :pointer; // NULL ended array of download links
end;
const
// notifies a caller that file has been sent
// wParam = (MCONTACT)hContact
// lParam = (LPARAM)(TRANSFERINFO*)info - transfer info
ME_DROPBOX_SENT:PAnsiChar = 'Dropbox/Sent/Event';
{$ENDIF}
|