Source code of Windows XP (NT5)
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.

185 lines
6.2 KiB

  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. #ifndef _INC_WFEXT
  11. #define _INC_WFEXT /* #defined if wfext.h has been included */
  12. #ifdef __cplusplus /* Assume C declaration for C++ */
  13. extern "C" {
  14. #endif /* __cplusplus */
  15. #define MENU_TEXT_LEN 40
  16. #define FMMENU_FIRST 1
  17. #define FMMENU_LAST 99
  18. #define FMEVENT_LOAD 100
  19. #define FMEVENT_UNLOAD 101
  20. #define FMEVENT_INITMENU 102
  21. #define FMEVENT_USER_REFRESH 103
  22. #define FMEVENT_SELCHANGE 104
  23. #define FMEVENT_TOOLBARLOAD 105
  24. #define FMEVENT_HELPSTRING 106
  25. #define FMEVENT_HELPMENUITEM 107
  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_GETSELCOUNT (WM_USER + 0x0202)
  32. #define FM_GETSELCOUNTLFN (WM_USER + 0x0203) /* LFN versions are odd */
  33. #define FM_REFRESH_WINDOWS (WM_USER + 0x0206)
  34. #define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)
  35. #define FM_GETDRIVEINFOA (WM_USER + 0x0201)
  36. #define FM_GETFILESELA (WM_USER + 0x0204)
  37. #define FM_GETFILESELLFNA (WM_USER + 0x0205) /* LFN versions are odd */
  38. #define FM_GETDRIVEINFOW (WM_USER + 0x0211)
  39. #define FM_GETFILESELW (WM_USER + 0x0214)
  40. #define FM_GETFILESELLFNW (WM_USER + 0x0215) /* LFN versions are odd */
  41. #ifdef UNICODE
  42. #define FM_GETDRIVEINFO FM_GETDRIVEINFOW
  43. #define FM_GETFILESEL FM_GETFILESELW
  44. #define FM_GETFILESELLFN FM_GETFILESELLFNW
  45. #else
  46. #define FM_GETDRIVEINFO FM_GETDRIVEINFOA
  47. #define FM_GETFILESEL FM_GETFILESELA
  48. #define FM_GETFILESELLFN FM_GETFILESELLFNA
  49. #endif
  50. typedef struct _FMS_GETFILESELA {
  51. FILETIME ftTime;
  52. DWORD dwSize;
  53. BYTE bAttr;
  54. CHAR szName[260]; // always fully qualified
  55. } FMS_GETFILESELA, FAR *LPFMS_GETFILESELA;
  56. typedef struct _FMS_GETFILESELW {
  57. FILETIME ftTime ;
  58. DWORD dwSize;
  59. BYTE bAttr;
  60. WCHAR szName[260]; // always fully qualified
  61. } FMS_GETFILESELW, FAR *LPFMS_GETFILESELW;
  62. #ifdef UNICODE
  63. #define FMS_GETFILESEL FMS_GETFILESELW
  64. #define LPFMS_GETFILESEL LPFMS_GETFILESELW
  65. #else
  66. #define FMS_GETFILESEL FMS_GETFILESELA
  67. #define LPFMS_GETFILESEL LPFMS_GETFILESELA
  68. #endif
  69. typedef struct _FMS_GETDRIVEINFOA { // for drive
  70. DWORD dwTotalSpace;
  71. DWORD dwFreeSpace;
  72. CHAR szPath[260]; // current directory
  73. CHAR szVolume[14]; // volume label
  74. CHAR szShare[128]; // if this is a net drive
  75. } FMS_GETDRIVEINFOA, FAR *LPFMS_GETDRIVEINFOA;
  76. typedef struct _FMS_GETDRIVEINFOW { // for drive
  77. DWORD dwTotalSpace;
  78. DWORD dwFreeSpace;
  79. WCHAR szPath[260]; // current directory
  80. WCHAR szVolume[14]; // volume label
  81. WCHAR szShare[128]; // if this is a net drive
  82. } FMS_GETDRIVEINFOW, FAR *LPFMS_GETDRIVEINFOW;
  83. #ifdef UNICODE
  84. #define FMS_GETDRIVEINFO FMS_GETDRIVEINFOW
  85. #define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOW
  86. #else
  87. #define FMS_GETDRIVEINFO FMS_GETDRIVEINFOA
  88. #define LPFMS_GETDRIVEINFO LPFMS_GETDRIVEINFOA
  89. #endif
  90. typedef struct _FMS_LOADA {
  91. DWORD dwSize; // for version checks
  92. CHAR szMenuName[MENU_TEXT_LEN]; // output
  93. HMENU hMenu; // output
  94. UINT wMenuDelta; // input
  95. } FMS_LOADA, FAR *LPFMS_LOADA;
  96. typedef struct _FMS_LOADW {
  97. DWORD dwSize; // for version checks
  98. WCHAR szMenuName[MENU_TEXT_LEN]; // output
  99. HMENU hMenu; // output
  100. UINT wMenuDelta; // input
  101. } FMS_LOADW, FAR *LPFMS_LOADW;
  102. #ifdef UNICODE
  103. #define FMS_LOAD FMS_LOADW
  104. #define LPFMS_LOAD LPFMS_LOADW
  105. #else
  106. #define FMS_LOAD FMS_LOADA
  107. #define LPFMS_LOAD LPFMS_LOADA
  108. #endif
  109. // Toolbar definitions
  110. typedef struct tagEXT_BUTTON {
  111. WORD idCommand; /* menu command to trigger */
  112. WORD idsHelp; /* help string ID */
  113. WORD fsStyle; /* button style */
  114. } EXT_BUTTON, FAR *LPEXT_BUTTON;
  115. typedef struct tagFMS_TOOLBARLOAD {
  116. DWORD dwSize; /* for version checks */
  117. LPEXT_BUTTON lpButtons; /* output */
  118. WORD cButtons; /* output, 0==>no buttons */
  119. WORD cBitmaps; /* number of non-sep buttons */
  120. WORD idBitmap; /* output */
  121. HBITMAP hBitmap; /* output if idBitmap==0 */
  122. } FMS_TOOLBARLOAD, FAR *LPFMS_TOOLBARLOAD;
  123. typedef struct tagFMS_HELPSTRINGA {
  124. INT idCommand; /* input, -1==>the menu was selected */
  125. HMENU hMenu; /* input, the extensions menu */
  126. CHAR szHelp[128]; /* output, the help string */
  127. } FMS_HELPSTRINGA, FAR *LPFMS_HELPSTRINGA;
  128. typedef struct tagFMS_HELPSTRINGW {
  129. INT idCommand; /* input, -1==>the menu was selected */
  130. HMENU hMenu; /* input, the extensions menu */
  131. WCHAR szHelp[128]; /* output, the help string */
  132. } FMS_HELPSTRINGW, FAR *LPFMS_HELPSTRINGW;
  133. #ifdef UNICODE
  134. #define FMS_HELPSTRING FMS_HELPSTRINGW
  135. #define LPFMS_HELPSTRING LPFMS_HELPSTRINGW
  136. #else
  137. #define FMS_HELPSTRING FMS_HELPSTRINGA
  138. #define LPFMS_HELPSTRING LPFMS_HELPSTRINGA
  139. #endif
  140. typedef DWORD (APIENTRY *FM_EXT_PROC)(HWND, WORD, LONG);
  141. typedef DWORD (APIENTRY *FM_UNDELETE_PROC)(HWND, LPTSTR);
  142. #ifdef UNICODE
  143. LONG WINAPI FMExtensionProcW(HWND hwnd, WORD wEvent, LONG lParam);
  144. #else
  145. LONG WINAPI FMExtensionProc(HWND hwnd, WORD wEvent, LONG lParam);
  146. #endif
  147. #ifdef __cplusplus
  148. } /* End of extern "C" { */
  149. #endif /* __cplusplus */
  150. #endif /* _INC_WFEXT */
  151.