summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/add_to_start_menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Toaster/src/add_to_start_menu.h')
-rw-r--r--plugins/Toaster/src/add_to_start_menu.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/Toaster/src/add_to_start_menu.h b/plugins/Toaster/src/add_to_start_menu.h
index f4bccab295..17d22ba6ad 100644
--- a/plugins/Toaster/src/add_to_start_menu.h
+++ b/plugins/Toaster/src/add_to_start_menu.h
@@ -1,10 +1,6 @@
-wchar_t* GetShortcutPath();
-HRESULT InstallShortcut(_In_z_ wchar_t *shortcutPath);
+#ifndef _ADD_TOSTART_MENU_H_
+#define _ADD_TOSTART_MENU_H_
-__forceinline bool ShortcutExists()
-{ return (GetFileAttributes(ptrW(GetShortcutPath())) < 0xFFFFFFF);
-}
+HRESULT TryCreateShortcut();
-__forceinline HRESULT TryCreateShortcut()
-{ return (ShortcutExists() ? S_OK : InstallShortcut(ptrW(GetShortcutPath())));
-} \ No newline at end of file
+#endif //_ADD_TOSTART_MENU_H_ \ No newline at end of file