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.

147 lines
3.3 KiB

  1. /************************************************/
  2. /***** Shell Component private include file *****/
  3. /************************************************/
  4. #define cchpBufTmpLongMax 255
  5. #define cchpBufTmpLongBuf (cchpBufTmpLongMax + 1)
  6. #define cchpBufTmpShortMax 63
  7. #define cchpBufTmpShortBuf (cchpBufTmpShortMax + 1)
  8. //
  9. // Exit_Code values
  10. //
  11. #define SETUP_ERROR_SUCCESS 0
  12. #define SETUP_ERROR_USERCANCEL 1
  13. #define SETUP_ERROR_GENERAL 2
  14. //
  15. // ShellCode values
  16. //
  17. #define SHELL_CODE_OK 0
  18. #define SHELL_CODE_NO_SUCH_INF 1
  19. #define SHELL_CODE_NO_SUCH_SECTION 2
  20. #define SHELL_CODE_ERROR 3
  21. extern HANDLE hInst;
  22. extern HWND hWndShell;
  23. extern HWND hwParam; // Top-level window provided by cmd line or NULL
  24. extern HWND hwPseudoParent ; // Window to use to center dialogs
  25. #ifdef UNUSED
  26. extern HWND hWndRTF;
  27. #endif // UNUSED
  28. extern HWND hWndInstr;
  29. extern HWND hWndExitB;
  30. extern HWND hWndHelpB;
  31. // extern SZ szShlScriptSection;
  32. extern CHP rgchBufTmpLong[cchpBufTmpLongBuf];
  33. extern CHP rgchBufTmpShort[cchpBufTmpShortBuf];
  34. //
  35. // ParseCmdLine returns the following codes
  36. //
  37. #define CMDLINE_SUCCESS 0
  38. #define CMDLINE_ERROR 1
  39. #define CMDLINE_SETUPDONE 2
  40. extern INT ParseCmdLine(HANDLE, SZ, PSZ, PSZ, PSZ, PSZ, INT *);
  41. BOOL CreateShellWindow(HANDLE,INT,BOOL);
  42. extern VOID FDestroyShellWindow(VOID);
  43. extern VOID FFlashParentWindow ( BOOL On ) ;
  44. extern BOOL FInitApp(HANDLE, SZ, SZ, SZ, SZ, INT);
  45. extern BOOL FInterpretNextInfLine(WPARAM, LPARAM); // 1632
  46. #ifdef UNUSED
  47. extern BOOL APIENTRY FInitSysCD(PSDLE, SZ, SZ, BOOL);
  48. #endif // UNUSED
  49. extern LRESULT APIENTRY ShellWndProc(HWND, UINT, WPARAM, LPARAM); // 1632
  50. extern VOID PreexitCleanup();
  51. VOID
  52. ControlTerm(
  53. VOID
  54. );
  55. //
  56. // Hook Related externals
  57. //
  58. extern DWORD APIENTRY HookKeyFilter(INT nCode,LONG wParam,LONG lParam);
  59. extern BOOL FInitHook(VOID);
  60. extern BOOL FTermHook(VOID);
  61. //
  62. // Default dialog procedure initialisation
  63. //
  64. BOOL
  65. DlgDefClassInit(
  66. IN HANDLE hInst,
  67. IN BOOL Init
  68. );
  69. extern BOOL FVirCheck(HANDLE);
  70. extern SCP rgscp[];
  71. extern PSPT psptShellScript;
  72. extern INT dyChar;
  73. extern INT dxChar;
  74. /* for String Parsing Table */
  75. #define spcError 0
  76. #define spcUnknown 1
  77. #define spcInstall 2
  78. #define spcUI 3
  79. #define spcDetect 4
  80. #define spcReadSyms 5
  81. #define spcUpdateInf 6
  82. #define spcWriteInf 7
  83. #define spcExit 8
  84. #define spcWriteSymTab 9
  85. #define spcSetTitle 10
  86. #define spcInitSys 11
  87. #define spcInitSysNet 12
  88. #define spcProfileOn 13
  89. #define spcProfileOff 14
  90. #define spcExitAndExec 15
  91. #define spcEnableExit 16
  92. #define spcDisableExit 17
  93. #define spcShell 18
  94. #define spcReturn 19
  95. #define IDC_CDOKAY 900
  96. #define IDC_CDCANCEL 901
  97. #define IDC_CDNAME 902
  98. #define IDC_CDORG 903
  99. #define IDM_ABOUT 101
  100. #define IDI_STF_ICON 147
  101. //
  102. // Mode fields in the setup command line:
  103. //
  104. // /G : Gui Initial Setup
  105. // /N : Setup To Share <-- no longer supported!
  106. //
  107. // Otherwise normal
  108. //
  109. #define wModeSetupNormal 0
  110. #define wModeGuiInitialSetup 1
  111. #if 0
  112. #define wModeSetupToShare 2
  113. #endif