DragExt.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //---------------------------------------------------------------------------
  2. #ifndef DragExtH
  3. #define DragExtH
  4. //---------------------------------------------------------------------------
  5. #define DRAG_EXT_MAPPING L"WinSCPDragExtMapping"
  6. #define DRAG_EXT_MUTEX L"WinSCPDragExtMutex"
  7. #define DRAG_EXT_DUMMY_DIR_PREFIX L"scp"
  8. #define DRAG_EXT_DUMMY_DIR_PREFIX_LEN 3
  9. //---------------------------------------------------------------------------
  10. DEFINE_GUID(CLSID_ShellExtension, 0xe15e1d68, 0x0d1c, 0x49f7,
  11. 0xbe, 0xb8, 0x81, 0x2b, 0x1e, 0x00, 0xfa, 0x60 );
  12. //---------------------------------------------------------------------------
  13. #ifdef _WIN64
  14. #pragma clang diagnostic push
  15. #pragma clang diagnostic ignored "-Wpadded"
  16. #endif
  17. #pragma pack(push, 4)
  18. //---------------------------------------------------------------------------
  19. struct TDragExtCommStruct
  20. {
  21. enum TVersion
  22. {
  23. Version0 = 0,
  24. Version1 = 1,
  25. CurrentVersion = Version1,
  26. MinVersion = Version1,
  27. MaxVersion = CurrentVersion
  28. };
  29. int Version;
  30. bool Dragging;
  31. wchar_t DropDest[MAX_PATH];
  32. };
  33. //---------------------------------------------------------------------------
  34. #pragma pack(pop)
  35. #ifdef _WIN64
  36. #pragma clang diagnostic pop
  37. #endif
  38. //---------------------------------------------------------------------------
  39. #endif // DragExtH