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.

126 lines
2.9 KiB

  1. #include "cabinet.h"
  2. #include "cabwnd.h"
  3. #include "rcids.h"
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. struct valstr {
  7. int val;
  8. char * str;
  9. };
  10. #define TABENT(id) { id, # id },
  11. struct valstr ValStrTab[] = {
  12. // inc/startids.h
  13. TABENT(IDM_FILERUN)
  14. TABENT(IDM_LOGOFF)
  15. TABENT(IDM_SUSPEND)
  16. TABENT(IDM_EJECTPC)
  17. TABENT(IDM_SETTINGSASSIST)
  18. TABENT(IDM_TRAYPROPERTIES)
  19. TABENT(IDM_UPDATEWIZARD)
  20. TABENT(IDM_UPDATE_SEP)
  21. #ifdef _HYDRA_
  22. TABENT(IDM_MU_DISCONNECT)
  23. TABENT(IDM_MU_SECURITY)
  24. #endif
  25. TABENT(IDM_RECENT)
  26. TABENT(IDM_FIND)
  27. TABENT(IDM_HELPSEARCH)
  28. TABENT(IDM_PROGRAMS)
  29. TABENT(IDM_CONTROLS)
  30. TABENT(IDM_EXITWIN)
  31. TABENT(IDM_FAVORITES)
  32. TABENT(IDM_SETTINGS)
  33. TABENT(IDM_PRINTERS)
  34. TABENT(IDM_STARTMENU)
  35. TABENT(IDM_MYCOMPUTER)
  36. TABENT(IDM_PROGRAMSINIT)
  37. TABENT(IDM_RECENTINIT)
  38. #ifdef IDM_FAVORITESINIT
  39. TABENT(IDM_FAVORITESINIT)
  40. #endif
  41. TABENT(IDM_MYDOCUMENTS)
  42. TABENT(IDM_MENU_FIND)
  43. TABENT(TRAY_IDM_FINDFIRST)
  44. TABENT(TRAY_IDM_FINDLAST)
  45. #ifdef FEATURE_BROWSEWEB
  46. TABENT(IDM_MENU_WEB)
  47. #endif
  48. // explorer/rcids.h
  49. TABENT(FCIDM_FIRST)
  50. TABENT(FCIDM_LAST)
  51. TABENT(FCIDM_TOOLBAR)
  52. TABENT(FCIDM_STATUS)
  53. TABENT(FCIDM_DRIVELIST)
  54. TABENT(FCIDM_TREE)
  55. TABENT(FCIDM_TABS)
  56. TABENT(FCIDM_BROWSER_FILE)
  57. TABENT(FCIDM_FILECLOSE)
  58. TABENT(FCIDM_PREVIOUSFOLDER)
  59. TABENT(FCIDM_DELETE)
  60. TABENT(FCIDM_RENAME)
  61. TABENT(FCIDM_PROPERTIES)
  62. TABENT(FCIDM_NEXTCTL)
  63. TABENT(FCIDM_DROPDRIVLIST)
  64. TABENT(FCIDM_CONTEXTMENU)
  65. TABENT(FCIDM_BROWSER_EDIT)
  66. TABENT(FCIDM_MOVE)
  67. TABENT(FCIDM_COPY)
  68. TABENT(FCIDM_LINK)
  69. TABENT(FCIDM_PASTE)
  70. TABENT(FCIDM_BROWSER_VIEW)
  71. TABENT(FCIDM_VIEWMENU)
  72. TABENT(FCIDM_VIEWTOOLBAR)
  73. TABENT(FCIDM_VIEWSTATUSBAR)
  74. TABENT(FCIDM_OPTIONS)
  75. TABENT(FCIDM_REFRESH)
  76. TABENT(FCIDM_VIEWITBAR)
  77. TABENT(FCIDM_VIEWNEW)
  78. TABENT(FCIDM_BROWSER_TOOLS)
  79. TABENT(FCIDM_CONNECT)
  80. TABENT(FCIDM_DISCONNECT)
  81. TABENT(FCIDM_CONNECT_SEP)
  82. TABENT(FCIDM_GOTO)
  83. TABENT(FCIDM_FINDFILES)
  84. TABENT(FCIDM_FINDCOMPUTER)
  85. TABENT(FCIDM_MENU_TOOLS_FINDFIRST)
  86. TABENT(FCIDM_MENU_TOOLS_FINDLAST)
  87. TABENT(FCIDM_BROWSER_HELP)
  88. TABENT(FCIDM_HELPSEARCH)
  89. TABENT(FCIDM_HELPABOUT)
  90. TABENT(FCIDM_BROWSER_EXPLORE)
  91. TABENT(FCIDM_NAVIGATEBACK)
  92. TABENT(FCIDM_NAVIGATEFORWARD)
  93. TABENT(FCIDM_RECENTMENU)
  94. TABENT(FCIDM_RECENTFIRST)
  95. TABENT(FCIDM_RECENTLAST)
  96. TABENT(FCIDM_FAVS_FIRST)
  97. TABENT(FCIDM_FAVS_MANAGE)
  98. TABENT(FCIDM_FAVS_ADDTO)
  99. TABENT(FCIDM_FAVS_MORE)
  100. TABENT(FCIDM_FAVS_ITEMFIRST)
  101. TABENT(FCIDM_FAVS_ITEM)
  102. TABENT(FCIDM_FAVS_ITEMLAST)
  103. TABENT(FCIDM_FAVS_LAST)
  104. TABENT(IDM_CLOSE)
  105. };
  106. #undef TABENT
  107. void PrTab(struct valstr *pvs, int n);
  108. int _cdecl main()
  109. {
  110. PrTab(ValStrTab, ARRAYSIZE(ValStrTab));
  111. return 0;
  112. }
  113. void PrTab(struct valstr *pvs, int n)
  114. {
  115. for (; n > 0; n--, pvs++) {
  116. printf("%s\t0x%x\r\n", pvs->str, pvs->val);
  117. }
  118. return;
  119. }