home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / winnt / walker / pwalk.rc < prev    next >
Text File  |  1995-11-20  |  6KB  |  145 lines

  1. #include "pwalk.h"
  2.  
  3. IDR_MAINICON    ICON LOADONCALL DISCARDABLE    "pwalk.ico"
  4. IDR_PROSTATICON ICON LOADONCALL DISCARDABLE    "procstat.ico"
  5. IDR_SYSSTATICON ICON LOADONCALL DISCARDABLE    "sysstat.ico"
  6.  
  7. IDR_WALKERMENU MENU LOADONCALL DISCARDABLE
  8. {
  9.     POPUP    "&Process"
  10.     {
  11.     MENUITEM    "Re&walk process",         IDM_PROCESSREWALK
  12.     MENUITEM    "&Load process",         IDM_PROCESSLOAD
  13.     MENUITEM    "&Unload process",         IDM_PROCESSUNLOAD
  14.     MENUITEM    SEPARATOR
  15.     MENUITEM    "&Suspend process",      IDM_PROCESSSUSPEND
  16.     MENUITEM    "&Resume process",         IDM_PROCESSRESUME
  17.     MENUITEM    SEPARATOR
  18.     MENUITEM    "E&xit",             IDM_EXIT
  19.     }
  20.     POPUP    "&Sort"
  21.     {
  22.     MENUITEM    "by &Address",         IDM_SORTADDRESS
  23.     MENUITEM    "by &State",         IDM_SORTSTATE
  24.     MENUITEM    "by &Protection",         IDM_SORTPROTECTION
  25.     MENUITEM    "by &Size",          IDM_SORTSIZE
  26.     MENUITEM    "by &BaseAddress",         IDM_SORTBASEADDRESS
  27.     }
  28.     POPUP    "&View"
  29.     {
  30.     MENUITEM    "&System statistics",     IDM_VIEWSYSSTAT
  31.     MENUITEM    "&Process statistics",     IDM_VIEWPROSTAT
  32.     MENUITEM    SEPARATOR
  33.     MENUITEM    "View selected &memory",     IDM_VIEWMEMORY
  34.     MENUITEM    "View memory at &address...", IDM_VIEWADDRESS
  35.     }
  36.     POPUP    "&Options"
  37.         {
  38.         MENUITEM    "Numbers in &Bytes",         IDM_OPTBYTES CHECKED
  39.         MENUITEM    "Numbers in &Pages",         IDM_OPTPAGES
  40.         }
  41. }
  42.  
  43.  
  44. STRINGTABLE
  45.     {
  46.     IDS_WALKERCLASS             "ProcessWalker"
  47.     IDS_SYSSTATCLASS             "SysStatClass"
  48.     IDS_PROSTATCLASS             "ProStatClass"
  49.     IDS_STATUSCLASS             "ProcessWalkerStatusWnd"
  50.     IDS_MEMVIEWCLASS             "MemoryViewClass"
  51.     IDS_SYSSTATTITLE             "System statistics"
  52.     IDS_PROSTATTITLE             "Process statistics"
  53.     IDS_MEMVIEWTITLE             "View Memory -"
  54.     IDS_CAPTION              "Process Walker - "
  55.     IDS_UNAVAILABLE             "Command is not available."
  56.     IDS_LISTBOX              "listbox"
  57.     IDS_EXEFILEEXT             "EXE"
  58.     IDS_FILEOPENTITLE             "Open executable image"
  59.     IDS_SELF                 "<No Process>"
  60.     IDS_ERROR                 "Error"
  61.     IDS_NOTENOUGHMEM             "Not enough memory available"
  62.     IDS_HEAPCREATEFAILED         "Can't create debug heap, aborting command."
  63.     IDS_DBGEVNTACTIVE             "DBGEVNTACTIVE"
  64.     IDS_DBGEVNTCLOSE             "DBGEVNTCLOSE"
  65.     IDS_DBGEVNTSTOP             "DBGEVNTSTOP"
  66.     IDS_DBGEVNTSTART             "DBGEVNTSTART"
  67.     IDS_DBGEVNTREAD             "DBGEVNTREAD"
  68.     IDS_DBGEVNTWRITE             "DBGEVNTWRITE"
  69.     IDS_DBGEVNTACK             "DBGEVNTACK"
  70.     IDS_EXCEPTION             "Unhandled Exception"
  71.     IDS_APPEXCEPTION             "Exception occurred in dependent process."
  72.     IDS_CHILDAPPEXCEPTION         "Exception occurred in sibling of dependent process."
  73.     IDS_ERRDUPLICATEHANDLE         "Error - DuplicateHandle"
  74.     IDS_ERRGETTHREADCONTEXT         "Error - GetThreadContext"
  75.     IDS_ERRSETTHREADCONTEXT         "Error - SetThreadContext"
  76.     IDS_ERRCREATEPROCESS         "Error - CreateProcess"
  77.     IDS_ERROPENPROCESS             "Error - OpenProcess"
  78.     IDS_ERRCREATEFILEMAPPING         "Error - CreateFileMapping"
  79.     IDS_ERRHEAPALLOC             "Error - HeapAlloc"
  80.     IDS_ERRREADPROCESSMEMORY         "Error - ReadProcessMemory"
  81.     IDS_ERRWRITEPROCESSMEMORY         "Error - WriteProcessMemory"
  82.     IDS_ERRCREATEWINDOW          "Error - CreateWindow"
  83.     IDS_ERRVIRTUALFREE             "Error - VirtualFree"
  84.     IDS_ERRVIRTUALALLOC          "Error - VirtualAlloc"
  85.     IDS_STATUSREADY             "Ready"
  86.     IDS_NOTCOMMITTEDMEMORY         "Can only view committed memory"
  87.     IDS_COULDNOTREADPROCESS         "Unable to read debuggee process memory"
  88.     IDS_EXITPROCESS             "Child process terminated"
  89.     IDS_EXITTHREAD             "Thread terminated"
  90.     IDS_CREATEPROCESS             "Child process created"
  91.     IDS_CREATETHREAD             "Thread created"
  92.     IDS_LOADDLL              "DLL Loaded"
  93.     IDS_UNLOADDLL             "DLL unloaded"
  94.     IDS_OUTPUTDEBUGSTRING         "Output debug event occurred"
  95.     IDS_RIPEVENT             "RIP event occurred"
  96.     IDS_UNHANDLEDEXCEPTION         "Unhandled Exception occurred"
  97.     IDS_BREAKPOINTEXCEPTION         "Breakpoint Exception occurred"
  98.     IDS_ACCESSVIOLATIONEXCEPTION     "Access Violation Exception occurred"
  99.  
  100.     IDS_PROCESSSUSPENDED         "Child process suspended"
  101.     IDS_PROCESSRESUMED             "Child process resumed"
  102.     IDS_PROCESSINIT             "Initializing child process"
  103.     IDS_INITPROBE             "Could not initialize probe DLL"
  104.     IDM_PROCESSREWALK             "Rewalk process address space"
  105.     IDM_PROCESSLOAD             "Load new child process"
  106.     IDM_PROCESSUNLOAD             "Unload current child process"
  107.     IDM_PROCESSSUSPEND             "Suspend child process"
  108.     IDM_PROCESSRESUME             "Resume child process"
  109.     IDM_EXIT                 "Exit ProcessWalker"
  110.     IDM_SORTADDRESS             "Sort process objects by address"
  111.     IDM_SORTSTATE             "Sort process objects by state"
  112.     IDM_SORTPROTECTION             "Sort process objects by protection"
  113.     IDM_SORTSIZE             "Sort process objects by size"
  114.     IDM_SORTBASEADDRESS          "Sort process objects by base address"
  115.     IDM_VIEWSYSSTAT             "View system statistics window"
  116.     IDM_VIEWPROSTAT             "View process statistics window"
  117.     IDM_POPUPPROCESS             "Child process commands"
  118.     IDM_POPUPSORT             "Sort process objects"
  119.     IDM_POPUPVIEW             "View process statistics"
  120.     IDM_POPUPOPTIONS                     "Output Formatting Options"
  121.     IDM_OPTBYTES                         "Display numbers in main list as bytes"
  122.     IDM_OPTPAGES                         "Display numbers in main list as pages"
  123.     }
  124.  
  125.  
  126. IDD_ADDR DIALOG 25, 25, 100, 45
  127. CAPTION "View Memory"
  128. STYLE WS_BORDER | DS_MODALFRAME | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
  129. BEGIN
  130.     CONTROL "Address:", -1,      "static", SS_RIGHT | WS_CHILD, 5, 5, 35, 8
  131.     CONTROL "",     IDC_ADDR, "edit",   ES_RIGHT | WS_BORDER | WS_TABSTOP | WS_CHILD, 41, 3, 50, 12
  132.     CONTROL "Hexidecimal", IDC_HEX,  "button"  BS_AUTOCHECKBOX | WS_CHILD, 12, 18, 50, 8
  133.     CONTROL "OK",    IDOK,      "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 15, 30, 30, 12
  134.     CONTROL "Cancel",    IDCANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 55, 30, 30, 12
  135. END
  136.  
  137.  
  138. IDD_INITIALIZING DIALOG 65, 42, 142, 38
  139. LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
  140. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  141. CAPTION "ProcessWalker"
  142. BEGIN
  143.     LTEXT           "Initializing child process...", 101, 26, 15, 92, 8
  144. END
  145.