summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-29 13:16:26 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-29 13:16:26 +0000
commit576239499489b2965be375c4c5a773fdf592ed0d (patch)
tree5bfb8d2c4a85fcede6477e0f20bcd495610f0826 /plugins
parent79c4ad2977650902c17531457721037afcfe0ac4 (diff)
Toaster: cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@15092 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Toaster/src/stdafx.h28
1 files changed, 4 insertions, 24 deletions
diff --git a/plugins/Toaster/src/stdafx.h b/plugins/Toaster/src/stdafx.h
index f5c193c328..d198146e97 100644
--- a/plugins/Toaster/src/stdafx.h
+++ b/plugins/Toaster/src/stdafx.h
@@ -9,16 +9,13 @@
#include <propvarutil.h>
#include <newpluginapi.h>
-#include <m_system.h>
#include <m_system_cpp.h>
-#include <m_core.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 <m_string.h>
#include "version.h"
#include "resource.h"
@@ -27,10 +24,14 @@ 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<ToastNotification> lstNotifications;
@@ -40,27 +41,6 @@ struct callbackArg
ToastNotification* notification;
};
-#define MODULE "Toaster"
-
-extern HINSTANCE g_hInstance;
-
void InitServices();
int OnPreShutdown(WPARAM, LPARAM);
-
-INT_PTR Service(WPARAM, LPARAM);
-HRESULT ShortcutExists();
-wchar_t* GetShortcutPath();
-HRESULT InstallShortcut(_In_z_ wchar_t *shortcutPath);
-
-__forceinline HRESULT TryCreateShortcut()
-{
- return (ShortcutExists() ? S_OK : InstallShortcut(ptrW(GetShortcutPath())));
-}
-
-__forceinline HRESULT ShortcutExists()
-{
- return (!(GetFileAttributes(ptrW(GetShortcutPath())) < 0xFFFFFFF) ? S_OK : S_FALSE);
-}
-
-
#endif //_COMMON_H_