#define NOGDICAPMASKS
#define NOWINMESSAGES
#define NOSYSMETRICS
#define NOICON
#define NOKEYSTATE
#define NOSYSCOMMANDS
#define NOSHOWWINDOW
#define NOATOM
#define NOGDI
#define NOFONT
#define NOBRUSH
#define NOCLIPBOARD
#define NOCOLOR
#define NOCREATESTRUCT
#define NODRAWTEXT
#define NOMB
#define NOMEMMGR
#define NOMETAFILE
#define NOMINMAX
#define NOOPENFILE
#define NOPEN
#define NOREGION
#define NOSCROLL
#define NOSOUND
#define NOTEXTMETRIC
#define NOWH
#define NOWINOFFSETS
#define NOWNDCLASS
#define NOCOMM
#include <windows.h>

#include "drwatson.rcv"

#include "str.h"

drwatsonIcon ICON doctor.ico

#define DS_3DLOOK           0x0004

SHERDIAG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE 59, 42, 179, 124
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_3DLOOK
CAPTION "Dr. Watson's Clues"
BEGIN
  CONTROL "To help fix the problem you just encountered, please describe what you were doing before the fault occurred." 101, "STATIC", WS_CHILD | WS_VISIBLE | 0x1L, 26, 5, 128, 26
  CONTROL "" 102, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | 0x44L, 13, 33, 151, 62
  CONTROL "OK" 1, "BUTTON", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 32, 101, 32, 14
  CONTROL "Cancel" 2, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 110, 101, 36, 14
END

STRINGTABLE PRELOAD DISCARDABLE
BEGIN

/* Note all strings below must be <= CCH_MAX_STRING_RESOURCE chars! */

/* drwatson.c */

IDSTRNoFault                           "No Faults Detected\n\nCopyright 1991-1995, Microsoft Corp."
IDSTRFaulty                            "%d new 'Dr. Watson' Failure Reports can be found in file '%s'\n\nCopyright 1991-1995, Microsoft Corp."
IDSTRGPText                            "An error has occurred in your application.\nIf you choose Ignore, you should save your work in a new file.\nIf you choose Close, your application will terminate."
IDSTRErrMsg                            "A copy of 'Dr. Watson' is already running on the system."
IDSTRVers                              "Unable to install 'Dr. Watson', may have wrong version of TOOLHELP.DLL"
IDSTRClassMsg                          "Unable to install 'Dr. Watson', can't register window class."
IDSTRCoprocessor                       "Math coprocessor"
IDSTR8086                              "8086"
IDSTR80186                             "80186 or 80188"
IDSTR80286                             "80286"
IDSTR80386                             "80386 or 80386 SX"
IDSTR80486                             "80486"
IDSTREnhancedMode                      "Enhanced mode"
IDSTRProtectMode                       "Protect mode"
IDSTRStandardMode                      "Standard mode"
IDSTRWindowsNT                         "Windows NT"

/* drwatson.c SegFlags */

IDSTRNullPtr                           "Null Ptr"
IDSTRInvalid                           "Invalid"
IDSTRNotPresent                        "!Present"
IDSTRCode                              "Code "
IDSTRExR                               "Ex/R"
IDSTRExO                               "Ex/O"
IDSTRData                              "Data "
IDSTRRW                                "R/W"
IDSTRRO                                "R-O"

/* drwatson.c ModuleName (and several others) */

IDSTRUnknown                           "Unknown"

/* drwatson.c FaultType */

IDSTRDivideByZero                      "Divide by 0"
IDSTRInvalidOpcode                     "Invalid Opcode"
IDSTRGeneralProtection                 "General Protection"

/* drwatson.c DecodeFault */

IDSTRInvalidSelector                   "Invalid selector"
IDSTRNullSelector                      "Null Selector"
IDSTRSegmentNotPresent                 "Segment Not Present"
IDSTRExceedSegmentBounds               "Exceed Segment Bounds"
IDSTRCodeSegment                       "Code Segment"
IDSTRExecuteOnlySegment                "Execute-Only Segment"
IDSTRReadOnlySegment                   "Read-Only Segment"

/* drwatson.c SafeDisAsm86 */

IDSTRSegNotPresentOrPastEnd            "Segment not present, or past end"

/* drwatson.c FaultCause */

IDSTRErrorLog                          "Error Log"
IDSTRParameterErrorLog                 "Parameter Error Log"

/* drwatson.c FileInfo */

IDSTRFileNotFound                      "File Not Found"

/* drwatson.c DisAsmAround */

IDSTRCodeSegmentNPOrInvalid            "Code segment not present, or invalid\n"
IDSTRNoSymbolsFound                    "(no symbols found)\n"

/* drwatson.c DumpInfo */

IDSTRSystemInfoInfo                    "System Info (info)\n"
IDSTRWindowsVersion                    "Windows version %d.%02d\n"
IDSTRDebugBuild                        "Debug build\n"
IDSTRRetailBuild                       "Retail build\n"
IDSTRWindowsBuild                      "Windows Build %s\n"
IDSTRUsername                          "Username %s\n"
IDSTROrganization                      "Organization %s\n"
IDSTRSystemFreeSpace                   "System Free Space %ld\n"
IDSTRStackBaseTopLowestSize            "Stack base %u, top %u, lowest %u, size %u\n"
IDSTRSystemResourcesUserGDI            "System resources:  USER: %u%% free, seg %04x  GDI: %u%% free, seg %04x\n"
IDSTRMemManInfo1                       "LargestFree %ld, MaxPagesAvail %ld, MaxPagesLockable %ld\n"
IDSTRMemManInfo2                       "TotalLinear %ld, TotalUnlockedPages %ld, FreePages %ld\n"
IDSTRMemManInfo3                       "TotalPages %ld, FreeLinearSpace %ld, SwapFilePages %ld\n"
IDSTRMemManInfo4                       "Page Size %d\n"
IDSTRTasksExecuting                    "%d tasks executing.\n"
IDSTRWinFlags                          "WinFlags -\n"

/* drwatson.c GetProcName */

IDSTRUnknownAddress                    "Unknown address"

/* drwatson.c DumpStack */

IDSTRStackDumpStack                    "Stack Dump (stack)\n"
IDSTRStackFrameInfo                    "Stack Frame %d is %-28s ss:bp %04x:%04x"

/* drwatson.c BeginReport */

IDSTRFailureReport                     "\n%s Failure Report - %s"

/* drwatson.c ShowParamError */

IDSTRLastParamErrorWas                 "Last param error was:"

/* drwatson.c Sherlock */

IDSTRHadAFaultAt                       "%s had a '%s' fault at %s\n"
IDSTRCPURegistersRegs                  "CPU Registers (regs)\n"
IDSTRCPU32bitRegisters32bit            "CPU 32 bit Registers (32bit)\n"
IDSTRInstructionDisasm                 "Instruction Disassembly (disasm)\n"
IDSTRSystemTasksTasks                  "System Tasks (tasks)\n"
IDSTRTaskHandleFlagsInfo               "Task %8s, Handle %04x, Flags %04x, Info %s\n"
IDSTRFilename                          "  FileName %s\n"
IDSTRSystemModulesModules              "System Modules (modules)\n"
IDSTRModuleHandleFlagsInfo             "Module %8s, Handle %04x, Flags %04x, Info %s\n"
IDSTRFile                              "  File %s\n"
IDSTRContinuingExecution               "Attempting to continue execution at user request, %s"

/* drwatson.c CallMeToo */

IDSTRDebugString                       "DebugString: %s"
IDSTRApplicationError                  "Application Error"
IDSTRInvalidParameter                  "Invalid Parameter"
IDSTRNA                                "n.a."
IDSTRHadAFaultAt2                      "%s had a '%s (%x)' fault at %s\n"
IDSTRParamIs                           "param is %lx$%s\n"

/* drwatson.c Moriarty */

IDSTRStop                              "Stop"

/* drwatson.c SherlockWndProc */

IDSTRLogFileGettingLarge               "Your 'Dr. Watson' log file '%s' is getting quite large."

/* drwatson.c WinMain */

IDSTRStart                             "\nStart"

/* error.c LogErrorStr */

IDSTRWarningError                      "\r\n\r\nWarning error #%04x"
IDSTRFatalError                        "\r\n\r\nFatal error #%04x"

/* error.c LogParamErrorStr */

IDSTRParamErrorParam                   "Invalid parameter passed to %s: %ld"
IDSTRParamErrorBadInt                  "Invalid parameter passed to %s: %d"
IDSTRParamErrorBadFlags                "Invalid flags passed to %s: %#04x"
IDSTRParamErrorBadDWord                "Invalid flags passed to %s: %#08lx"
IDSTRParamErrorBadHandle               "Invalid handle passed to %s: %#04x"
IDSTRParamErrorBadPtr                  "Invalid pointer passed to %s: %#04x:%#04x"

/* drwatson.c CurTime -- These strings must be short enough to not overflow
                         the 48-byte buffer used by CurTime with a string of
                         the form "Fri Sep  1 01:58:19 1995" (which is 24
                         characters + 1 for the null terminator). */

IDSTRJan                               "Jan"
IDSTRFeb                               "Feb"
IDSTRMar                               "Mar"
IDSTRApr                               "Apr"
IDSTRMay                               "May"
IDSTRJun                               "Jun"
IDSTRJul                               "Jul"
IDSTRAug                               "Aug"
IDSTRSep                               "Sep"
IDSTROct                               "Oct"
IDSTRNov                               "Nov"
IDSTRDec                               "Dec"

IDSTRSun                               "Sun"
IDSTRMon                               "Mon"
IDSTRTue                               "Tue"
IDSTRWed                               "Wed"
IDSTRThu                               "Thu"
IDSTRFri                               "Fri"
IDSTRSat                               "Sat"

END
