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.

186 lines
8.9 KiB

  1. #include "windows.h"
  2. #include "ddespy.h"
  3. rcinclude ddespy.dlg
  4. IDI_DDESPY ICON ddespy.ico
  5. IDR_MENU MENU
  6. BEGIN
  7. POPUP "&Output",
  8. BEGIN
  9. MENUITEM "&File...\tCtrl-F", IDM_OUTPUT_FILE
  10. MENUITEM "&Debug Terminal\tCtrl-D" IDM_OUTPUT_DEBUG
  11. MENUITEM "&Screen\tCtrl-S", IDM_OUTPUT_SCREEN
  12. MENUITEM SEPARATOR
  13. MENUITEM "&Clear Screen", IDM_CLEARSCREEN
  14. MENUITEM "&Mark...", IDM_MARK
  15. END
  16. POPUP "&Monitor",
  17. BEGIN
  18. MENUITEM "String &handle data", IDM_FILTER_HSZINFO
  19. MENUITEM "&Sent DDE messages", IDM_FILTER_INIT_TERM
  20. MENUITEM "&Posted DDE messages", IDM_FILTER_DDEMSGS
  21. MENUITEM "&Callbacks", IDM_FILTER_CALLBACKS
  22. MENUITEM "&Errors", IDM_FILTER_ERRORS
  23. MENUITEM "&Filters...", IDM_FILTER_DIALOG
  24. END
  25. POPUP "&Track",
  26. BEGIN
  27. MENUITEM "&String Handles", IDM_TRACK_HSZS
  28. MENUITEM "&Conversations", IDM_TRACK_CONVS
  29. MENUITEM "&Links", IDM_TRACK_LINKS
  30. MENUITEM "Ser&vices", IDM_TRACK_SVRS
  31. END
  32. MENUITEM "&About...", IDM_ABOUT
  33. END
  34. IDR_ACCEL ACCELERATORS
  35. BEGIN
  36. "F" , IDM_OUTPUT_FILE, VIRTKEY, CONTROL
  37. "D" , IDM_OUTPUT_DEBUG, VIRTKEY, CONTROL
  38. "S" , IDM_OUTPUT_SCREEN, VIRTKEY, CONTROL
  39. END
  40. STRINGTABLE
  41. BEGIN
  42. IDS_TITLE ,"DDESpy"
  43. IDS_DEFAULT_OUTPUT_FNAME ,"ddespy.txt"
  44. IDS_INIFNAME ,"ddespy.ini"
  45. IDS_CLASS ,"DdeSpyWClass"
  46. IDS_HUH ,"?"
  47. IDS_ZERO ,"0"
  48. IDS_CRLF ,"\r\n"
  49. IDS_TRACKTITLE_1 ,"String Handles"
  50. IDS_TRACKTITLE_2 ,"Active Conversations"
  51. IDS_TRACKTITLE_3 ,"Active Links"
  52. IDS_TRACKTITLE_4 ,"Registered Servers"
  53. IDS_TRACKHEADING_1 ,"Handle\tCount\tString"
  54. IDS_TRACKHEADING_2 ,"Service\tTopic\tClient\tServer"
  55. IDS_TRACKHEADING_3 ,"Service\tTopic\tItem\tFormat\tType\tClient\tServer"
  56. IDS_TRACKHEADING_4 ,"Service\tInstance Service"
  57. IDS_QCLOSEFILE_TEXT ,"%s is already open for debug output. Do you wish to close it and open another file?"
  58. IDS_QCLOSEFILE_CAPTION ,"Warning!"
  59. IDS_ACTION_CLEANEDUP ,"Cleaned up"
  60. IDS_ACTION_DESTROYED ,"Destroyed"
  61. IDS_ACTION_INCREMENTED ,"Incremented"
  62. IDS_ACTION_CREATED ,"Created"
  63. IDS_SENT ,"Sent"
  64. IDS_POSTED ,"Posted"
  65. IDS_INPUT_DATA ,"\tInput data="
  66. IDS_TABDDD ,"\t..."
  67. IDS_OUTPUT_DATA ,"\tOutput data="
  68. IDS_WARM ,"Warm"
  69. IDS_HOT ,"Hot"
  70. IDS_UNKNOWN_CALLBACK ,"Unknown callback"
  71. IDS_APPIS ,"App="
  72. IDS_TOPICIS ,"Topic="
  73. IDS_ITEMIS ,"Item="
  74. IDS_OR ," or "
  75. IDS_FACKREQ ,"fAckReq "
  76. IDS_DEFERUPD ,"fDeferUpd "
  77. IDS_FACK ,"fAck "
  78. IDS_FBUSY ,"fBusy "
  79. IDS_FRELEASE ,"fRelease "
  80. IDS_FREQUESTED ,"fRequested "
  81. IDS_ERRST0 ,"Advacktimeout"
  82. IDS_ERRST1 ,"Busy"
  83. IDS_ERRST2 ,"Dataacktimeout"
  84. IDS_ERRST3 ,"Dll_not_initialized"
  85. IDS_ERRST4 ,"Dll_usage"
  86. IDS_ERRST5 ,"Execacktimeout"
  87. IDS_ERRST6 ,"Invalidparameter"
  88. IDS_ERRST7 ,"Low Memory warning"
  89. IDS_ERRST8 ,"Memory_error"
  90. IDS_ERRST9 ,"Notprocessed"
  91. IDS_ERRST10 ,"No_conv_established"
  92. IDS_ERRST11 ,"Pokeacktimeout"
  93. IDS_ERRST12 ,"Postmsg_failed"
  94. IDS_ERRST13 ,"Reentrancy"
  95. IDS_ERRST14 ,"Server_died"
  96. IDS_ERRST15 ,"Sys_error"
  97. IDS_ERRST16 ,"Unadvacktimeout"
  98. IDS_ERRST17 ,"Unfound_queue_id"
  99. IDS_MSG0 ,"Initiate"
  100. IDS_MSG1 ,"Terminate"
  101. IDS_MSG2 ,"Advise"
  102. IDS_MSG3 ,"Unadvise"
  103. IDS_MSG4 ,"Ack"
  104. IDS_MSG5 ,"Data"
  105. IDS_MSG6 ,"Request"
  106. IDS_MSG7 ,"Poke"
  107. IDS_MSG8 ,"Execute"
  108. IDS_TYPE0 ,"Error"
  109. IDS_TYPE1 ,"Advdata"
  110. IDS_TYPE2 ,"Advreq"
  111. IDS_TYPE3 ,"Advstart"
  112. IDS_TYPE4 ,"Advstop"
  113. IDS_TYPE5 ,"Execute"
  114. IDS_TYPE6 ,"Connect"
  115. IDS_TYPE7 ,"Connect_confirm"
  116. IDS_TYPE8 ,"Xact_complete"
  117. IDS_TYPE9 ,"Poke"
  118. IDS_TYPE10 ,"Register"
  119. IDS_TYPE11 ,"Request"
  120. IDS_TYPE12 ,"Disconnect"
  121. IDS_TYPE13 ,"Unregister"
  122. IDS_TYPE14 ,"Wildconnect"
  123. IDS_TYPE15 ,"Monitor"
  124. IDS_INVALID_FNAME ,"Invalid filename."
  125. IDS_PROF_OUT_FILE ,"output.file"
  126. IDS_PROF_OUT_DEBUG ,"output.debug"
  127. IDS_PROF_OUT_SCREEN ,"output.screen"
  128. IDS_PROF_MONITOR_STRINGHANDLES ,"monitor.stringhandles"
  129. IDS_PROF_MONITOR_INITIATES ,"monitor.initiates/terminates"
  130. IDS_PROF_MONITOR_DDE_MESSAGES ,"monitor.messages"
  131. IDS_PROF_MONITOR_CALLBACKS ,"monitor.callbacks"
  132. IDS_PROF_MONITOR_ERRORS ,"monitor.errors"
  133. IDS_PROF_TRACK_STRINGHANDLES ,"track.stringhandles"
  134. IDS_PROF_TRACK_LINKS ,"track.links"
  135. IDS_PROF_TRACK_CONVERSATIONS ,"track.conversations"
  136. IDS_PROF_TRACK_SERVICES ,"track.services"
  137. IDS_PROF_TERSE ,"terse"
  138. IDS_YES ,"yes"
  139. IDS_NO ,"no"
  140. IDS_MARKDLGTITLE ,"Insert Mark"
  141. IDS_SEPERATOR ,"------"
  142. IDS_MARKTEXT ,"Mark Text:"
  143. IDS_LISTCLASS ,"MCLBClientWClass"
  144. IDS_LBOX ,"LISTBOX"
  145. IDS_WILD ,"*"
  146. IDS_STRINGCLASS ,"StringWindow"
  147. IDS_FMT_CB1 ,"Task:0x%x Time:%ld Callback:\r\n\tType=%ws, "
  148. IDS_FMT_CB2 ,", hConv=0x%lx, hsz1=0x%lx(\""%ws\"")\r\n\thsz2=0x%lx(\""%ws\""), hData=0x%lx, dwData1=0x%lx, dwData2=0x%lx\r\n\treturn=0x%lx"
  149. IDS_FMT_CTXT1 ,"\tContext = (wFlags=%ld, wCountryID=%ld, iCodePage=%ld, dwLangID=%ld,\r\n\tdwSecurity=%ld, ImpersonationLevel=%d, ContextTrackingMode=%d,\r\n\tEffectiveOnly=%ld)"
  150. IDS_FMT_DATAIS1 ,"\r\n\tData="
  151. IDS_FMT_ER1 ,"Task:0x%x Time:%ld Error: #%x = %ws"
  152. IDS_FMT_EXEC1 ,"Execute command=\""%ws\"""
  153. IDS_FMT_MSG1 ,"Task:0x%x Time:%ld hwndTo=0x%x Message(%ws)=%ws:"
  154. IDS_FMT_MSG2 ,"\thwndFrom=0x%x, "
  155. IDS_FMT_STATUSIS ,"status=%x("
  156. IDS_FMT_TRS_CB1 ,"[%x:%ld] CB(%ws, "
  157. IDS_FMT_TRS_CB2 ,", %lx, %lx(\""%ws\"") %lx(\""%ws\""), %lx, %lx, %lx)=%lx"
  158. IDS_FMT_TRS_CTXT1 ,"\tContext = (%ld, %ld, %ld, %ld, %ld, %d, %d, %ld)"
  159. IDS_FMT_TRS_DATAIS1 ," Data="
  160. IDS_FMT_TRS_ER1 ,"[%x:%ld] Error: #%x = %ws"
  161. IDS_FMT_TRS_EXEC1 ,"Exec=\""%ws\"""
  162. IDS_FMT_TRS_MSG1 ,"[%x:%ld] %x->%x %ws %ws:"
  163. IDS_FMT_TRS_MSG2 ,"\t"
  164. IDS_FMT_TRS_STATUSIS ,"S=%x("
  165. IDS_FMT_SH_MSG1 ,"Task:0x%x, Time:%ld, String Handle %s: %lx(%s)"
  166. #ifdef JAPAN
  167. IDS_BADATOM ,"�s���ȱ�� (0x%x)"
  168. #else
  169. IDS_BADATOM ,"Bad Atom (0x%x)"
  170. #endif
  171. END
  172. #include <ntverp.h>
  173. #define VER_FILETYPE VFT_APP
  174. #define VER_FILESUBTYPE VFT2_UNKNOWN
  175. #define VER_FILEDESCRIPTION_STR "DDE Spy Debugging Applet"
  176. #define VER_INTERNALNAME_STR "ddespy\0"
  177. #define VER_ORIGINALFILENAME_STR "ddespy.exe\0"
  178. #include "common.ver"