home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / RTLWIN32.PAK / WFEXT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  6.4 KB  |  188 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * wfext.h -     Windows File Manager Extensions definitions (Win32 variant)   *
  4. *                                                                             *
  5. *               Version 3.10                                                  *
  6. *                                                                             *
  7. *               Copyright (c) 1991-1993, Microsoft Corp. All rights reserved. *
  8. *                                                                             *
  9. *******************************************************************************/
  10.  
  11. #ifndef _INC_WFEXT
  12. #define _INC_WFEXT            /* #defined if wfext.h has been included */
  13. #pragma option -b
  14.  
  15. #ifdef __cplusplus            /* Assume C declaration for C++ */
  16. extern "C" {
  17. #endif  /* __cplusplus */
  18.  
  19. #define MENU_TEXT_LEN           40
  20.  
  21. #define FMMENU_FIRST            1
  22. #define FMMENU_LAST             99
  23.  
  24. #define FMEVENT_LOAD            100
  25. #define FMEVENT_UNLOAD          101
  26. #define FMEVENT_INITMENU        102
  27. #define FMEVENT_USER_REFRESH    103
  28. #define FMEVENT_SELCHANGE       104
  29. #define FMEVENT_TOOLBARLOAD     105
  30. #define FMEVENT_HELPSTRING      106
  31. #define FMEVENT_HELPMENUITEM    107
  32.  
  33. #define FMFOCUS_DIR             1
  34. #define FMFOCUS_TREE            2
  35. #define FMFOCUS_DRIVES          3
  36. #define FMFOCUS_SEARCH          4
  37.  
  38. #define FM_GETFOCUS           (WM_USER + 0x0200)
  39. #define FM_GETSELCOUNT        (WM_USER + 0x0202)
  40. #define FM_GETSELCOUNTLFN     (WM_USER + 0x0203)  /* LFN versions are odd */
  41. #define FM_REFRESH_WINDOWS    (WM_USER + 0x0206)
  42. #define FM_RELOAD_EXTENSIONS  (WM_USER + 0x0207)
  43.  
  44. #define FM_GETDRIVEINFOA      (WM_USER + 0x0201)
  45. #define FM_GETFILESELA        (WM_USER + 0x0204)
  46. #define FM_GETFILESELLFNA     (WM_USER + 0x0205)  /* LFN versions are odd */
  47.  
  48. #define FM_GETDRIVEINFOW      (WM_USER + 0x0211)
  49. #define FM_GETFILESELW        (WM_USER + 0x0214)
  50. #define FM_GETFILESELLFNW     (WM_USER + 0x0215)  /* LFN versions are odd */
  51.  
  52. #ifdef UNICODE
  53. #define FM_GETDRIVEINFO    FM_GETDRIVEINFOW
  54. #define FM_GETFILESEL      FM_GETFILESELW
  55. #define FM_GETFILESELLFN   FM_GETFILESELLFNW
  56. #else
  57. #define FM_GETDRIVEINFO    FM_GETDRIVEINFOA
  58. #define FM_GETFILESEL      FM_GETFILESELA
  59. #define FM_GETFILESELLFN   FM_GETFILESELLFNA
  60. #endif
  61.  
  62.  
  63. typedef struct _FMS_GETFILESELA {
  64.    FILETIME ftTime;
  65.    DWORD dwSize;
  66.    BYTE bAttr;
  67.    CHAR szName[260];          // always fully qualified
  68. } FMS_GETFILESELA, FAR *LPFMS_GETFILESELA;
  69.  
  70. typedef struct _FMS_GETFILESELW {
  71.    FILETIME ftTime ;
  72.    DWORD dwSize;
  73.    BYTE bAttr;
  74.    WCHAR szName[260];          // always fully qualified
  75. } FMS_GETFILESELW, FAR *LPFMS_GETFILESELW;
  76.  
  77. #ifdef UNICODE
  78. #define FMS_GETFILESEL   FMS_GETFILESELW
  79. #define LPFMS_GETFILESEL LPFMS_GETFILESELW
  80. #else
  81. #define FMS_GETFILESEL   FMS_GETFILESELA
  82. #define LPFMS_GETFILESEL LPFMS_GETFILESELA
  83. #endif
  84.  
  85.  
  86. typedef struct _FMS_GETDRIVEINFOA {      // for drive
  87.    DWORD dwTotalSpace;
  88.    DWORD dwFreeSpace;
  89.    CHAR  szPath[260];                    // current directory
  90.    CHAR  szVolume[14];                   // volume label
  91.    CHAR  szShare[128];                   // if this is a net drive
  92. } FMS_GETDRIVEINFOA, FAR *LPFMS_GETDRIVEINFOA;
  93.  
  94. typedef struct _FMS_GETDRIVEINFOW {      // for drive
  95.    DWORD dwTotalSpace;
  96.    DWORD dwFreeSpace;
  97.    WCHAR szPath[260];                    // current directory
  98.    WCHAR szVolume[14];                   // volume label
  99.    WCHAR szShare[128];                   // if this is a net drive
  100. } FMS_GETDRIVEINFOW, FAR *LPFMS_GETDRIVEINFOW;
  101.  
  102. #ifdef UNICODE
  103. #define FMS_GETDRIVEINFO   FMS_GETDRIVEINFOW
  104. #define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW
  105. #else
  106. #define FMS_GETDRIVEINFO   FMS_GETDRIVEINFOA
  107. #define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA
  108. #endif
  109.  
  110.  
  111. typedef struct _FMS_LOADA {
  112.    DWORD dwSize;                        // for version checks
  113.    CHAR  szMenuName[MENU_TEXT_LEN];     // output
  114.    HMENU hMenu;                         // output
  115.    UINT  wMenuDelta;                    // input
  116. } FMS_LOADA, FAR *LPFMS_LOADA;
  117.  
  118. typedef struct _FMS_LOADW {
  119.    DWORD dwSize;                        // for version checks
  120.    WCHAR szMenuName[MENU_TEXT_LEN];     // output
  121.    HMENU hMenu;                         // output
  122.    UINT  wMenuDelta;                    // input
  123. } FMS_LOADW, FAR *LPFMS_LOADW;
  124.  
  125. #ifdef UNICODE
  126. #define FMS_LOAD   FMS_LOADW
  127. #define LPFMS_LOAD LPFMS_LOADW
  128. #else
  129. #define FMS_LOAD   FMS_LOADA
  130. #define LPFMS_LOAD LPFMS_LOADA
  131. #endif
  132.  
  133.  
  134. // Toolbar definitions
  135.  
  136. typedef struct tagEXT_BUTTON {
  137.    WORD idCommand;                 /* menu command to trigger */
  138.    WORD idsHelp;                   /* help string ID */
  139.    WORD fsStyle;                   /* button style */
  140. } EXT_BUTTON, FAR *LPEXT_BUTTON;
  141.  
  142. typedef struct tagFMS_TOOLBARLOAD {
  143.    DWORD dwSize;                   /* for version checks */
  144.    LPEXT_BUTTON lpButtons;         /* output */
  145.    WORD cButtons;                  /* output, 0==>no buttons */
  146.    WORD cBitmaps;                  /* number of non-sep buttons */
  147.    WORD idBitmap;                  /* output */
  148.    HBITMAP hBitmap;                /* output if idBitmap==0 */
  149. } FMS_TOOLBARLOAD, FAR *LPFMS_TOOLBARLOAD;
  150.  
  151. typedef struct tagFMS_HELPSTRINGA {
  152.    INT   idCommand;       /* input, -1==>the menu was selected */
  153.    HMENU hMenu;           /* input, the extensions menu */
  154.    CHAR  szHelp[128];     /* output, the help string */
  155. } FMS_HELPSTRINGA, FAR *LPFMS_HELPSTRINGA;
  156.  
  157. typedef struct tagFMS_HELPSTRINGW {
  158.    INT   idCommand;       /* input, -1==>the menu was selected */
  159.    HMENU hMenu;           /* input, the extensions menu */
  160.    WCHAR szHelp[128];     /* output, the help string */
  161. } FMS_HELPSTRINGW, FAR *LPFMS_HELPSTRINGW;
  162.  
  163. #ifdef UNICODE
  164. #define FMS_HELPSTRING   FMS_HELPSTRINGW
  165. #define LPFMS_HELPSTRING LPFMS_HELPSTRINGW
  166. #else
  167. #define FMS_HELPSTRING   FMS_HELPSTRINGA
  168. #define LPFMS_HELPSTRING LPFMS_HELPSTRINGA
  169. #endif
  170.  
  171.  
  172. typedef DWORD (APIENTRY *FM_EXT_PROC)(HWND, WORD, LONG);
  173. typedef DWORD (APIENTRY *FM_UNDELETE_PROC)(HWND, LPTSTR);
  174.  
  175. #ifdef UNICODE
  176. LONG WINAPI FMExtensionProcW(HWND hwnd, WORD wEvent, LONG lParam);
  177. #else
  178. LONG WINAPI FMExtensionProc(HWND hwnd, WORD wEvent, LONG lParam);
  179. #endif
  180.  
  181. #ifdef __cplusplus
  182. }                  /* End of extern "C" { */
  183. #endif             /* __cplusplus */
  184.  
  185. #pragma option -b.
  186. #endif             /* _INC_WFEXT */
  187.  
  188.