source: filezilla/trunk/fuentes/src/fzshellext/shellext.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 1.2 KB
Line 
1#ifndef __SHELLEXT_H__
2#define __SHELLEXT_H__
3
4// Shell extension to handle dragging of files from FileZilla 3 into Explorer.
5// Based on code from WinSCP (http://winscp.net/)
6// Has to be compiled in Unicode mode.
7
8#define DRAG_EXT_MAPPING _T("FileZilla3DragDropExtMapping")
9#define DRAG_EXT_MUTEX _T("FileZilla3DragDropExtMutex")
10#define DRAG_EXT_DUMMY_DIR_PREFIX _T("fz3-")
11#define DRAG_EXT_DUMMY_DIR_PREFIX_LEN 4
12
13// {DB70412E-EEC9-479c-BBA9-BE36BFDDA41B}
14DEFINE_GUID(CLSID_ShellExtension,
150xdb70412e, 0xeec9, 0x479c, 0xbb, 0xa9, 0xbe, 0x36, 0xbf, 0xdd, 0xa4, 0x1b);
16
17// Internal structure of the file mapping
18// (Note: direct mappings to some struct cannot be used since structs are
19//  usually aligned differently depending on used compiler)
20//
21// Version number: 1 byte
22// Active drag&drop operation: 1 byte
23//   Values: 0 - inactive
24//           1 - Awaiting reply from shell extension
25//           2 - shell extension has filled in the data
26//           3 - shell extension failed to fill in the data
27// Filename: Given as wide character string. Zero-terminated. Capped to MAX_PATH wide-characters + terminating 0.
28
29const int DRAG_EXT_MAPPING_LENGTH = 1 + 1 + (MAX_PATH + 1) * 2 + 1;
30
31const int DRAG_EXT_VERSION = 1;
32
33#endif //__SHELLEXT_H__
Note: See TracBrowser for help on using the repository browser.