WinShellExtConstants.h.in 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) by Michael Schuster <michael@schuster.ms>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. * for more details.
  13. */
  14. #pragma once
  15. // IMPORTANT: Keep these constants in sync with WinShellExtConstants.wxi.in
  16. // Context Menu
  17. #define CONTEXT_MENU_GUID L"@WIN_SHELLEXT_CONTEXT_MENU_GUID@"
  18. #define CONTEXT_MENU_REGKEY_NAME L"@APPLICATION_SHORTNAME@ContextMenuHandler"
  19. #define CONTEXT_MENU_DESCRIPTION L"@APPLICATION_SHORTNAME@ context menu handler"
  20. // Overlays
  21. #define OVERLAY_GUID_ERROR L"@WIN_SHELLEXT_OVERLAY_GUID_ERROR@"
  22. #define OVERLAY_GUID_OK L"@WIN_SHELLEXT_OVERLAY_GUID_OK@"
  23. #define OVERLAY_GUID_OK_SHARED L"@WIN_SHELLEXT_OVERLAY_GUID_OK_SHARED@"
  24. #define OVERLAY_GUID_SYNC L"@WIN_SHELLEXT_OVERLAY_GUID_SYNC@"
  25. #define OVERLAY_GUID_WARNING L"@WIN_SHELLEXT_OVERLAY_GUID_WARNING@"
  26. //
  27. // Preceding spaces are intended, two spaces to put us ahead of the competition :/
  28. //
  29. // There is a limit in Windows (oh wonder^^) so that only the first 15 extensions get invoked, this is why to use that dirty little trick to get ahead ;)
  30. // See: https://docs.microsoft.com/en-us/windows/win32/shell/context-menu-handlers?redirectedfrom=MSDN#employing-the-verb-selection-model
  31. //
  32. #define OVERLAY_NAME_ERROR L" @APPLICATION_SHORTNAME@Error"
  33. #define OVERLAY_NAME_OK L" @APPLICATION_SHORTNAME@OK"
  34. #define OVERLAY_NAME_OK_SHARED L" @APPLICATION_SHORTNAME@OKShared"
  35. #define OVERLAY_NAME_SYNC L" @APPLICATION_SHORTNAME@Sync"
  36. #define OVERLAY_NAME_WARNING L" @APPLICATION_SHORTNAME@Warning"
  37. #define OVERLAY_DESCRIPTION L"@APPLICATION_SHORTNAME@ overlay handler"
  38. // NCUtil
  39. #define UTIL_PIPE_APP_NAME L"@APPLICATION_EXECUTABLE@"