home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 6.ddi / WINCLUDE.ZIP / WFEXT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  3.2 KB  |  92 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * wfext.h -     Windows File Manager Extensions definitions                   *
  4. *                                                                             *
  5. *               Version 3.10                                                  *                   *
  6. *                                                                             *
  7. *******************************************************************************/
  8.  
  9. #ifndef __WFEXT_H       /* prevent multiple includes */
  10. #define __WFEXT_H
  11.  
  12. #ifndef __WINDOWS_H
  13. #include <windows.h>    /* <windows.h> must be included */
  14. #endif  /* __WINDOWS_H */
  15.  
  16. #if !defined(WINVER) || (WINVER < 0x030a)
  17. #error File Manager extensions require Windows 3.1
  18. #endif
  19.  
  20. #ifndef RC_INVOKED
  21. #pragma option -a-      /* Assume byte packing throughout */
  22. #endif  /* RC_INVOKED */
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {            /* Assume C declarations for C++ */
  26. #endif  /* __cplusplus */
  27.  
  28. #define MENU_TEXT_LEN           40
  29.  
  30. #define FMMENU_FIRST            1
  31. #define FMMENU_LAST             99
  32.  
  33. #define FMEVENT_LOAD            100
  34. #define FMEVENT_UNLOAD          101
  35. #define FMEVENT_INITMENU        102
  36. #define FMEVENT_USER_REFRESH    103
  37. #define FMEVENT_SELCHANGE       104
  38.  
  39. #define FMFOCUS_DIR             1
  40. #define FMFOCUS_TREE            2
  41. #define FMFOCUS_DRIVES          3
  42. #define FMFOCUS_SEARCH          4
  43.  
  44. #define FM_GETFOCUS             (WM_USER + 0x0200)
  45. #define FM_GETDRIVEINFO         (WM_USER + 0x0201)
  46. #define FM_GETSELCOUNT          (WM_USER + 0x0202)
  47. #define FM_GETSELCOUNTLFN       (WM_USER + 0x0203)      /* LFN versions are odd */
  48. #define FM_GETFILESEL           (WM_USER + 0x0204)
  49. #define FM_GETFILESELLFN        (WM_USER + 0x0205)      /* LFN versions are odd */
  50. #define FM_REFRESH_WINDOWS      (WM_USER + 0x0206)
  51. #define FM_RELOAD_EXTENSIONS    (WM_USER + 0x0207)
  52.  
  53. typedef struct tagFMS_GETFILESEL
  54. {
  55.         UINT wTime;
  56.         UINT wDate;
  57.         DWORD dwSize;
  58.         BYTE bAttr;
  59.         char szName[260];               /* always fully qualified */
  60. } FMS_GETFILESEL, FAR *LPFMS_GETFILESEL;
  61.  
  62. typedef struct tagFMS_GETDRIVEINFO       /* for drive */
  63. {
  64.         DWORD dwTotalSpace;
  65.         DWORD dwFreeSpace;
  66.         char szPath[260];               /* current directory */
  67.         char szVolume[14];              /* volume label */
  68.         char szShare[128];              /* if this is a net drive */
  69. } FMS_GETDRIVEINFO, FAR *LPFMS_GETDRIVEINFO;
  70.  
  71. typedef struct tagFMS_LOAD
  72. {
  73.         DWORD dwSize;                           /* for version checks */
  74.         char  szMenuName[MENU_TEXT_LEN];        /* output */
  75.         HMENU hMenu;                            /* output */
  76.         UINT  wMenuDelta;                       /* input */
  77. } FMS_LOAD, FAR *LPFMS_LOAD;
  78.  
  79. typedef DWORD (CALLBACK *FM_EXT_PROC)(HWND, UINT, LONG);
  80. typedef DWORD (CALLBACK *FM_UNDELETE_PROC)(HWND, LPSTR);
  81.  
  82. #ifdef __cplusplus
  83. }                       /* End of extern "C" { */
  84. #endif  /* __cplusplus */
  85.  
  86. #ifndef RC_INVOKED
  87. #pragma option -a.      /* Revert to default packing */
  88. #endif  /* RC_INVOKED */
  89.  
  90. #endif  /* __WFEXT_H */
  91.  
  92.