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.

81 lines
1.9 KiB

  1. typedef USHORT BRC; /* Bootstrapper Return Code */
  2. /* order is important:
  3. */
  4. #define brcGen 0
  5. #define brcVir 1
  6. #define brcInst 2
  7. #define brcFile 3
  8. #define brcMemDS 4
  9. #define brcLst 5
  10. #define brcMem 6
  11. #define brcDS 7
  12. #define brcMemDSHlp 8 /* Note: second half of brcMemDS message. */
  13. #define brcInsDisk 9
  14. #define brcInsDisk2 10
  15. #define brcNoCpuSect 11
  16. #define brcNoSpill 12
  17. #define brcRegDb 13
  18. #define brcOkay 14
  19. #define brcInsCDRom2 15
  20. #define brcUserQuit 16
  21. #define brcString 17
  22. #define brcConnectToSource 18
  23. #define brcConnectHlp 19
  24. #define brcNoStf 20
  25. #define brcMax 21
  26. #define IDS_InsufMem (brcMax + 1) /* NOTE: brc's are also string id's! */
  27. #define IDS_InitErr (brcMax + 2)
  28. #define IDS_Setup (brcMax + 3)
  29. /* REVIEW: What is the "right" size for full path?
  30. ** (GetWindowsDirectory() says it needs 144 bytes).
  31. */
  32. #define cchFullPathMax 160
  33. extern int DispErrBrc ( BRC brc, BOOL fError, UINT fuStyle,
  34. const char *sz1, const char *sz2,
  35. const char *sz3 );
  36. extern BRC BrcHandleCabinetFiles ( HWND hWnd, char * szCabinet,
  37. int cFirstCabinetNum, int cNumOfCabinets, char * szSrcDir,
  38. char * szDstDir, char * szSrcs, char * szDsts,
  39. char * szSrcBuf, char * szDstBuf );
  40. extern void FYield ( VOID );
  41. extern HANDLE hinstBoot;
  42. #ifdef DEBUG
  43. #define DebugMsg(sz) MessageBox(NULL, (sz), "Bootstrapper Debug Msg", MB_OK)
  44. #else
  45. #define DebugMsg(sz)
  46. #endif
  47. #ifdef DEBUG
  48. #ifdef DMND2_C
  49. /* For Assertion and Debug error message display */
  50. char szDebugMsg[24] = "Debug Setup Message";
  51. char szDebugBuf[512];
  52. #else
  53. extern char szDebugMsg[24];
  54. extern char szDebugBuf[512];
  55. #endif /* DMND2_C */
  56. #define Assert(exp)\
  57. {\
  58. if (!(exp))\
  59. {\
  60. wsprintf(szDebugBuf, "File %s, Line %d",\
  61. (LPSTR)__FILE__, __LINE__);\
  62. MessageBox(NULL, szDebugBuf, "Assertion Error",\
  63. MB_OK | MB_ICONSTOP);\
  64. }\
  65. }
  66. #else /* !DEBUG */
  67. #define Assert(exp)
  68. #endif /* !DEBUG */