summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/delphi/m_sendss.inc
blob: e4a58a79ff25336be642e28e767408d3e4ca7682 (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}
{$DEFINE M_SENDSS}

const
//////////////////////////////////////////////////////////////////////////////
// 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
  MS_SENDSS_OPENDIALOG:PAnsiChar = '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
  MS_SENDSS_SEND2IMAGESHACK:PAnsiChar = '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
  MS_SENDSS_SENDDESKTOP:PAnsiChar = '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
  MS_SENDSS_EDITBITMAP:PAnsiChar = '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}