summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_sendss.h
blob: 4c190a4cdf46142b3ae74f648d643bd40bfdbe0e (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//This file is part of Send Screenshot a Miranda IM plugin
//Copyright (c) 2004-2006 Sйrgio Vieira Rolanski
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either
//version 2 of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this program; if not, write to the Free Software
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#ifndef _M_SENDSS_H_
#define _M_SENDSS_H_

//////////////////////////////////////////////////////////////////////////////
// Open the main capture dialog, but does not capture anything
// wParam = contact handle
// lParam = 0
// Returns zero on success
//   -1 if was not possibly to create capture window
#define MS_SENDSS_OPENDIALOG "SendSS/OpenCaptureDialog"

//////////////////////////////////////////////////////////////////////////////
// Send an image to imageshack.us
// wParam = (char*)filename
// lParam = (HANDLE)contact (can be null)
// v0.8.0.0+
// Returns always 0 (if lParam != 0)
// Returns (char*)URL or error message if lParam = 0. caller must mir_free the pointer
#define MS_SENDSS_SEND2IMAGESHACK "SendSS/Send2ImageShack"

//////////////////////////////////////////////////////////////////////////////
// 1. Send a screenshot of the desktop to the selected contact
// wParam = contact handle
// lParam = 0
// 2. Open the capture dialog in take screenshot only mode (it will not be sent)
// wParam = 0
// lParam = anything but 0
// Returns:
//   zero on success
//   -1 if was not possibly to create capture window
#define MS_SENDSS_SENDDESKTOP "SendSS/SendDesktop"

//////////////////////////////////////////////////////////////////////////////
// Edit a in-memory bitmap on the edit window
// wParam = (SENDSSCB) callback function address to call when editing is done
// lParam = (HBITMAP) bitmap handle, a copy is made so the calling function can free this handle after the service function returns
// Returns:
//   Zero on success
//   -1 if could not create the edit window
//   -2 if was not possible to alocate needed memory
#define MS_SENDSS_EDITBITMAP "SendSS/EditBitmap"

// The parameter passed is the bitmap handle
// the called function must free this handle when it's not needed anymore
// Don't do much processing on the called function or you will lock miranda up
typedef void (__stdcall *SENDSSCB)(LPVOID);

#endif