Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.8 KiB

  1. /*****************************************************************************\
  2. * *
  3. * wfext.h - Windows File Manager Extensions definitions *
  4. * *
  5. * Version 3.10 * *
  6. * *
  7. * Copyright (c) 1991-1992, Microsoft Corp. All rights reserved. *
  8. * *
  9. *******************************************************************************/
  10. #ifndef _INC_WFEXT
  11. #define _INC_WFEXT /* #defined if wfext.h has been included */
  12. #ifndef RC_INVOKED
  13. #pragma pack(1) /* Assume byte packing throughout */
  14. #endif /* RC_INVOKED */
  15. #ifdef __cplusplus
  16. extern "C" { /* Assume C declarations for C++ */
  17. #endif /* __cplusplus */
  18. #define MENU_TEXT_LEN 40
  19. #define FMMENU_FIRST 1
  20. #define FMMENU_LAST 99
  21. #define FMEVENT_LOAD 100
  22. #define FMEVENT_UNLOAD 101
  23. #define FMEVENT_INITMENU 102
  24. #define FMEVENT_USER_REFRESH 103
  25. #define FMEVENT_SELCHANGE 104
  26. #define FMFOCUS_DIR 1
  27. #define FMFOCUS_TREE 2
  28. #define FMFOCUS_DRIVES 3
  29. #define FMFOCUS_SEARCH 4
  30. #define FM_GETFOCUS (WM_USER + 0x0200)
  31. #define FM_GETDRIVEINFO (WM_USER + 0x0201)
  32. #define FM_GETSELCOUNT (WM_USER + 0x0202)
  33. #define FM_GETSELCOUNTLFN (WM_USER + 0x0203) /* LFN versions are odd */
  34. #define FM_GETFILESEL (WM_USER + 0x0204)
  35. #define FM_GETFILESELLFN (WM_USER + 0x0205) /* LFN versions are odd */
  36. #define FM_REFRESH_WINDOWS (WM_USER + 0x0206)
  37. #define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)
  38. typedef struct tagFMS_GETFILESEL
  39. {
  40. UINT wTime;
  41. UINT wDate;
  42. DWORD dwSize;
  43. BYTE bAttr;
  44. char szName[260]; /* always fully qualified */
  45. } FMS_GETFILESEL, FAR *LPFMS_GETFILESEL;
  46. typedef struct tagFMS_GETDRIVEINFO /* for drive */
  47. {
  48. DWORD dwTotalSpace;
  49. DWORD dwFreeSpace;
  50. char szPath[260]; /* current directory */
  51. char szVolume[14]; /* volume label */
  52. char szShare[128]; /* if this is a net drive */
  53. } FMS_GETDRIVEINFO, FAR *LPFMS_GETDRIVEINFO;
  54. typedef struct tagFMS_LOAD
  55. {
  56. DWORD dwSize; /* for version checks */
  57. char szMenuName[MENU_TEXT_LEN]; /* output */
  58. HMENU hMenu; /* output */
  59. UINT wMenuDelta; /* input */
  60. } FMS_LOAD, FAR *LPFMS_LOAD;
  61. typedef DWORD (CALLBACK *FM_EXT_PROC)(HWND, UINT, LONG);
  62. typedef DWORD (CALLBACK *FM_UNDELETE_PROC)(HWND, LPSTR);
  63. #ifndef RC_INVOKED
  64. #pragma pack() /* Revert to default packing */
  65. #endif /* RC_INVOKED */
  66. #ifdef __cplusplus
  67. } /* End of extern "C" { */
  68. #endif /* __cplusplus */
  69. #endif /* _INC_WFEXT */