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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#ifndef _COMMONHEADERS_H
#define _COMMONHEADERS_H
#pragma warning( disable : 4786 ) // limitation in MSVC's debugger.
//=====================================================
// Includes
//=====================================================
#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
#include <time.h>
#include <stddef.h>
#include <process.h>
#include <string.h>
#include "../miranda_src/SDK/Headers_c/newpluginapi.h"
#include "../miranda_src/SDK/Headers_c/m_clist.h"
#include "../miranda_src/SDK/Headers_c/m_clui.h"
#include "../miranda_src/SDK/Headers_c/m_skin.h"
#include "../miranda_src/SDK/Headers_c/m_langpack.h"
#include "../miranda_src/SDK/Headers_c/m_protomod.h"
#include "../miranda_src/SDK/Headers_c/m_database.h"
#include "../miranda_src/SDK/Headers_c/m_system.h"
#include "../miranda_src/SDK/Headers_c/m_protocols.h"
#include "../miranda_src/SDK/Headers_c/m_userinfo.h"
#include "../miranda_src/SDK/Headers_c/m_options.h"
#include "../miranda_src/SDK/Headers_c/m_protosvc.h"
#include "../miranda_src/SDK/Headers_c/m_utils.h"
#include "../miranda_src/SDK/Headers_c/m_ignore.h"
#include "../miranda_src/SDK/Headers_c/m_clc.h"
#include "../miranda_src/SDK/Headers_c/m_history.h"
//#include "../miranda_src/SDK/Headers_c/win2k.h"
#include "../miranda_src/SDK/Headers_c/m_popup.h"
#include "../miranda_src/SDK/Headers_c/m_file.h"
#include "../miranda_src/SDK/Headers_c/m_uninstaller.h"
#include "resource.h"
#ifndef NDEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
#endif
//=======================================================
// Definitions
//=======================================================
#define modname "buddypounce"
#define modFullname "Buddy Pounce"
#define msg(a,b) MessageBox(0,a,b,MB_OK)
#define SECONDSINADAY 86400
/* flags for the sending and recieving.... */
#define ANY 1
#define ONLINE 2
#define AWAY 4
#define NA 8
#define OCCUPIED 16
#define DND 32
#define FFC 64
#define INVISIBLE 128
#define PHONE 256
#define LUNCH 512
//=======================================================
// Variables
//=======================================================
PLUGINLINK *pluginLink;
HINSTANCE hInst;
struct windowInfo {
HANDLE hContact;
HWND SendIfMy;
HWND SendWhenThey;
};
struct SendPounceDlgProcStruct {
HANDLE hContact;
int timer;
char *message;
};
//=======================================================
// Functions
//=======================================================
// main.c
void SendPounce(char* text, HANDLE hContact);
//dialog.c
BOOL CALLBACK BuddyPounceDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK BuddyPounceSimpleDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK BuddyPounceOptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK SendPounceDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
void CreateMessageAcknowlegedWindow(HANDLE hContact, int SentSuccess);
#ifndef NDEBUG
#include <crtdbg.h>
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
#endif
#pragma comment(lib,"comctl32.lib")
#endif //_COMMONHEADERS_H
|