summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/stdafx.h
blob: 8df66f4598cbb2bca42d8258ec25250294af6c4e (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
#ifndef _COMMON_H_
#define _COMMON_H_

#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

#include <Windows.h>
#include <SDKDDKVer.h>
#include <intsafe.h>
#include <time.h>
#include <roapi.h>
#include <wrl\client.h>
#include <wrl\implements.h>
#include <windows.ui.notifications.h>

#include <newpluginapi.h>
#include <m_system.h>
#include <m_system_cpp.h>
#include <m_core.h>
#include <m_utils.h>
#include <m_langpack.h>
#include <m_avatars.h>
#include <m_protocols.h>
#include <m_popup.h>
#include <m_message.h>
#include <m_chat.h>

#include "version.h"
#include "resource.h"
#include <strsafe.h>

typedef void(__cdecl *pEventHandler)(void*);
const wchar_t AppUserModelID[] = _T("MirandaNG");

#include "string_reference_wrapper.h"
#include "toast_event_handler.h"
#include "toast_notification.h"

extern mir_cs csNotifications;
extern OBJLIST<ToastNotification> lstNotifications;

struct callbackArg
{
	MCONTACT hContact;
	ToastNotification* notification;
};

#define MODULE "Toaster"

extern HINSTANCE g_hInstance;

void InitServices();
int OnPreShutdown(WPARAM, LPARAM);
#endif //_COMMON_H_