#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 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "version.h" #include "resource.h" typedef void(__cdecl *pEventHandler)(void*); const wchar_t AppUserModelID[] = _T("MirandaNG"); DEFINE_PROPERTYKEY(PKEY_AppUserModel_ID, 0x9F4C2855, 0x9F79, 0x4B39, 0xA8, 0xD0, 0xE1, 0xD4, 0x2D, 0xE1, 0xD5, 0xF3, 5); #define MODULE "Toaster" #include "string_reference_wrapper.h" #include "toast_event_handler.h" #include "toast_notification.h" #include "add_to_start_menu.h" extern HINSTANCE g_hInstance; extern mir_cs csNotifications; extern OBJLIST lstNotifications; extern wchar_t wszTempDir[MAX_PATH]; struct callbackArg { MCONTACT hContact; ToastNotification* notification; }; struct ToastData { MCONTACT hContact; TCHAR *tszTitle; TCHAR *tszText; HICON hIcon; ToastData(MCONTACT _hContact, TCHAR *_tszTitle, TCHAR *_tszText, HICON _hIcon = NULL) : hContact(_hContact), tszTitle(mir_tstrdup(_tszTitle)), tszText(mir_tstrdup(_tszText)), hIcon(_hIcon) {} ~ToastData() { mir_free(tszTitle); mir_free(tszText); } }; void InitServices(); int OnPreShutdown(WPARAM, LPARAM); void __stdcall HideAllToasts(void*); #endif //_COMMON_H_