summaryrefslogtreecommitdiff
path: root/plugins/XSoundNotify/src/stdafx.h
blob: 47e1176e07f219d21cbb96c65392ec3228a48465 (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
#include <windows.h>
#include <Shlwapi.h>

#include <newpluginapi.h>
#include <m_system.h>
#include <m_database.h>
#include <m_protocols.h>
#include <m_protosvc.h>
#include <m_langpack.h>
#include <m_clist.h>
#include <m_skin.h>
#include <win2k.h>
#include <m_options.h>
#include <m_chat_int.h>

#include "resource.h"
#include "version.h"

#define SETTINGSNAME "XSoundNotify"
#define SETTINGSKEY "XSNPlugin_sound"
#define SETTINGSIGNOREKEY "XSNPlugin_ignore"

struct XSN_Data
{
	LPARAM hContact;
	wchar_t path[MAX_PATH];
	BYTE ignore;
	BYTE iscontact;

	__forceinline XSN_Data(LPARAM _aContact, wchar_t *_path, BYTE _ignore, BYTE _iscontact) :
		hContact(_aContact)
	{
		wcsncpy(path, _path, _countof(path));
		ignore = _ignore;
		iscontact = _iscontact;
	}
};

extern LIST<XSN_Data> XSN_Users;

extern HINSTANCE hInst;
extern MWindowList hChangeSoundDlgList;
extern BYTE isIgnoreSound, isOwnSound;

bool IsSuitableProto(PROTOACCOUNT *pa);

INT OptInit(WPARAM wParam, LPARAM lParam);

INT_PTR ShowDialog(WPARAM wParam, LPARAM lParam);