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.

202 lines
5.0 KiB

  1. #include "shellprv.h"
  2. #include "defview.h"
  3. #include "views.h"
  4. #include "ids.h"
  5. #include <stdlib.h>
  6. #include <stdio.h>
  7. struct valstr {
  8. int val;
  9. char * str;
  10. };
  11. #define TABENT(id) { id, # id },
  12. struct valstr ValStrTab[] = {
  13. // these guys come from doing:
  14. // qgrep IDM_ *.h unicpp/*.h ../inc/*.h
  15. // qgrep DVM_ *.h unicpp/*.h ../inc/*.h
  16. // magic editor commands to change to the right format:
  17. // g/#define/s/.*#define /TABENT(/
  18. // g/TABENT/s/\([^ ]*\).*/\1)/
  19. // inc/shellp.h
  20. // todo?
  21. // inc/startids.h
  22. // todo?
  23. #if 0
  24. // commui.h
  25. TABENT(CMIDM_LINK)
  26. TABENT(CMIDM_COPY)
  27. TABENT(CMIDM_MOVE)
  28. #endif
  29. // defview.h
  30. TABENT(SFVIDM_SELECT_FIRST)
  31. TABENT(SFVIDM_SELECT_ALL)
  32. TABENT(SFVIDM_SELECT_INVERT)
  33. TABENT(SFVIDM_DESELECT_ALL)
  34. TABENT(SFVIDM_VIEW_FIRST)
  35. TABENT(SFVIDM_VIEW_ICON)
  36. TABENT(SFVIDM_VIEW_SMALLICON)
  37. TABENT(SFVIDM_VIEW_LIST)
  38. TABENT(SFVIDM_VIEW_DETAILS)
  39. TABENT(SFVIDM_VIEW_FIRSTVIEW)
  40. TABENT(SFVIDM_VIEW_LASTVIEW)
  41. TABENT(SFVIDM_VIEW_OPTIONS)
  42. TABENT(SFVIDM_VIEW_VIEWMENU)
  43. TABENT(SFVIDM_VIEW_CUSTOMWIZARD)
  44. TABENT(SFVIDM_VIEW_COLSETTINGS)
  45. TABENT(SFVIDM_VIEW_EXTFIRST)
  46. TABENT(SFVIDM_VIEW_EXTLAST)
  47. TABENT(SFVIDM_VIEW_SVEXTFIRST)
  48. TABENT(SFVIDM_VIEW_SVEXTLAST)
  49. TABENT(SFVIDM_VIEW_EXTENDEDFIRST)
  50. TABENT(SFVIDM_VIEW_EXTENDEDLAST)
  51. TABENT(SFVIDM_ARRANGE_FIRST)
  52. TABENT(SFVIDM_ARRANGE_AUTO)
  53. TABENT(SFVIDM_ARRANGE_DISPLAYICONS)
  54. TABENT(SFVIDM_ARRANGE_AUTOGRID)
  55. TABENT(SFVIDM_TOOL_FIRST)
  56. TABENT(SFVIDM_TOOL_CONNECT)
  57. TABENT(SFVIDM_TOOL_DISCONNECT)
  58. TABENT(SFVIDM_HELP_FIRST)
  59. TABENT(SFVIDM_HELP_TOPIC)
  60. TABENT(SFVIDM_MISC_FIRST)
  61. TABENT(SFVIDM_MISC_REFRESH)
  62. TABENT(SFVIDM_CLIENT_FIRST)
  63. TABENT(SFVIDM_CLIENT_LAST)
  64. TABENT(SFVIDM_DESKTOP_FIRST)
  65. #ifdef SFVIDM_DESKTOPHTML_ONOFF
  66. TABENT(SFVIDM_DESKTOPHTML_ONOFF)
  67. TABENT(SFVIDM_DESKTOPHTML_UPDATE)
  68. #endif
  69. TABENT(SFVIDM_DESKTOP_LAST)
  70. TABENT(SFVIDM_COLUMN_FIRST)
  71. TABENT(SFVIDM_COLUMN_LAST)
  72. TABENT(SFVIDM_CONTEXT_FIRST)
  73. TABENT(SFVIDM_CONTEXT_LAST)
  74. TABENT(SFVIDM_BACK_CONTEXT_FIRST)
  75. TABENT(SFVIDM_BACK_CONTEXT_LAST)
  76. // ids.h
  77. TABENT(IDM_NOOP)
  78. TABENT(IDM_OPENCONTAINING)
  79. TABENT(IDM_CASESENSITIVE)
  80. TABENT(IDM_REGULAREXP)
  81. TABENT(IDM_SAVESEARCH)
  82. TABENT(IDM_CLOSE)
  83. TABENT(IDM_SAVERESULTS)
  84. TABENT(IDM_HELP_FIND)
  85. TABENT(IDM_HELP_WHATSTHIS)
  86. TABENT(IDM_MENU_OPTIONS)
  87. TABENT(IDM_FIND_MENU_FIRST)
  88. TABENT(IDM_FIND_MENU_LAST)
  89. // views.h
  90. TABENT(FSIDM_OBJPROPS_FIRST)
  91. TABENT(FSIDM_PROPERTIESBG)
  92. TABENT(FSIDM_FINDFILES)
  93. TABENT(FSIDM_FINDCOMPUTER)
  94. TABENT(FSIDM_DRIVES_FIRST)
  95. TABENT(FSIDM_FORMAT)
  96. TABENT(FSIDM_DISCONNECT)
  97. TABENT(FSIDM_EJECT)
  98. TABENT(FSIDM_DISKCOPY)
  99. TABENT(FSIDM_NETWORK_FIRST)
  100. TABENT(FSIDM_CONNECT)
  101. TABENT(FSIDM_NETPRN_INSTALL)
  102. TABENT(FSIDM_CONNECT_PRN)
  103. TABENT(FSIDM_DISCONNECT_PRN)
  104. TABENT(FSIDM_CPLPRN_FIRST)
  105. TABENT(FSIDM_SETDEFAULTPRN)
  106. TABENT(FSIDM_SHARING)
  107. TABENT(FSIDM_DOCUMENTDEFAULTS)
  108. TABENT(FSIDM_SERVERPROPERTIES)
  109. TABENT(FSIDM_OPENPRN)
  110. TABENT(FSIDM_RESUMEPRN)
  111. TABENT(FSIDM_PAUSEPRN)
  112. TABENT(FSIDM_WORKONLINE)
  113. TABENT(FSIDM_WORKOFFLINE)
  114. TABENT(FSIDM_PURGEPRN)
  115. TABENT(FSIDM_SORT_FIRST)
  116. TABENT(FSIDM_MENU_SENDTO)
  117. TABENT(FSIDM_SENDTOFIRST)
  118. TABENT(FSIDM_SENDTOLAST)
  119. TABENT(FSIDM_MENU_NEW)
  120. TABENT(FSIDM_NEWFOLDER)
  121. TABENT(FSIDM_NEWLINK)
  122. TABENT(FSIDM_NEWOTHER)
  123. TABENT(FSIDM_NEWLAST)
  124. TABENT(FSIDM_RESTORE)
  125. TABENT(FSIDM_PURGE)
  126. TABENT(FSIDM_PURGEALL)
  127. TABENT(FSIDM_MENU_BRIEFCASE)
  128. TABENT(FSIDM_UPDATEALL)
  129. TABENT(FSIDM_UPDATESELECTION)
  130. TABENT(FSIDM_SPLIT)
  131. TABENT(FSIDM_FOLDER_SEP)
  132. TABENT(FSIDM_VIEW_SEP)
  133. #if 0
  134. TABENT(DCMIDM_LINK)
  135. TABENT(DCMIDM_DELETE)
  136. TABENT(DCMIDM_RENAME)
  137. TABENT(DCMIDM_PROPERTIES)
  138. TABENT(DCMIDM_CUT)
  139. TABENT(DCMIDM_COPY)
  140. TABENT(DCMIDM_PASTE)
  141. #endif
  142. // unicpp/resource.h
  143. TABENT(FCIDM_NEXTCTL)
  144. TABENT(FCIDM_FINDFILES)
  145. TABENT(IDM_DCCM_FIRST)
  146. TABENT(IDM_DCCM_PROPERTIES)
  147. TABENT(IDM_DCCM_CUSTOMIZE)
  148. TABENT(IDM_DCCM_CLOSE)
  149. TABENT(IDM_DCCM_FULLSCREEN)
  150. TABENT(IDM_DCCM_SPLIT)
  151. TABENT(IDM_DCCM_RESTORE)
  152. TABENT(IDM_DCCM_LASTCOMPITEM)
  153. TABENT(FCIDM_REFRESH)
  154. TABENT(FCIDM_BROWSER_VIEW)
  155. TABENT(FCIDM_BROWSER_TOOLS)
  156. TABENT(FCIDM_STOP)
  157. TABENT(FCIDM_ADDTOFAVNOUI)
  158. TABENT(FCIDM_VIEWITBAR)
  159. TABENT(FCIDM_VIEWSEARCH)
  160. TABENT(FCIDM_CUSTOMIZEFOLDER)
  161. TABENT(FCIDM_VIEWFONTS)
  162. // unicpp/resource.h
  163. TABENT(FCIDM_STOP)
  164. TABENT(FCIDM_THEATER)
  165. TABENT(FCIDM_JAVACONSOLE)
  166. TABENT(FCIDM_BROWSER_EDIT)
  167. TABENT(FCIDM_MOVE)
  168. TABENT(FCIDM_COPY)
  169. TABENT(FCIDM_PASTE)
  170. TABENT(FCIDM_SELECTALL)
  171. TABENT(FCIDM_LINK)
  172. TABENT(FCIDM_EDITPAGE)
  173. TABENT(DVIDM_HELPSEARCH)
  174. };
  175. #undef TABENT
  176. void PrTab(struct valstr *pvs, int n);
  177. int _cdecl main()
  178. {
  179. PrTab(ValStrTab, ARRAYSIZE(ValStrTab));
  180. return 0;
  181. }
  182. void PrTab(struct valstr *pvs, int n)
  183. {
  184. for (; n > 0; n--, pvs++) {
  185. printf("%s\t0x%x\r\n", pvs->str, pvs->val);
  186. }
  187. return;
  188. }